Hey all!
I have a contact form where the user has to enter his e-mail address.
I want to add another field where the user has to enter it again to verify, and if the input in the two fields doesn't match, the form won't send me an e-mail, and an alert will show where it tells the user to try again.
Here is how the form looks like at this moment:<form id="contact_form" action="contact.php" method="POST" enctype="multipart/form-data">
<label for="name">
Name:
</label><br />
<input type="text" id="name" name="from" required><br />
<label for="email">
E-mail address:
</label><br />
<input type="text" id="email" name="email" required><br />
<label for="message">
Message
</label><br />
<input type="text" id="message" name="message" required><br />
<input id="submit" type="submit" name="submit" value="Send" />
</form>
The form already works well, so there's no problem with that. As stated, I only want to add a second e-mail field and use javascript to check if the value in both fields match. I figure it's easy to do with very basic js skills, but I only have basic HTML skills. :p
Thank you for any help!