Compare commits

..

4 Commits

Author SHA1 Message Date
t404owo
e74d3dcf43 Change form to use POST method for mail form 2025-10-19 02:36:55 +02:00
t404owo
9e18c458a5 Remove POST method from contact form 2025-10-19 02:35:30 +02:00
t404owo
254bc8a3cc Change label from 'Subject' to 'Name' 2025-10-19 02:24:53 +02:00
t404owo
eefe20d81c Fix error handling in mail.js for status message 2025-10-19 02:20:14 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ form.addEventListener("submit", async (e) => {
form.reset();
} catch (error) {
console.error("Error sending message:", error);
statusMessage.textContent = (error === "field_missing") ?
statusMessage.textContent = (error.message === "field_missing") ?
/*if (error==="field_missing")*/
"Please fill in all fields." :
/*else*/

View File

@@ -234,7 +234,7 @@ Here is my contact list. Feel free to contact me in case you need anything in my
</h1>
<div class="contact-email">
<form method="POST" class="form" id="mail-form">
<label for="name">Subject:</label>
<label for="name">Name:</label>
<input type="text" name="name" id="name" class="inputbox" placeholder="Your Name" required>
<br>
<label for="email">Email:</label>