Form email not validating on domain

edited July 2017 in Modules
Hi,

I've been using the form module to make a newsletter sign-up form. There is only one field (email) and that's validating if there's a @ sign. But when I forget the domein (.com, .nl) validation is passen and the emailaddress without extension is stored in the database. How can I make sure a valid emailaddress is entered?

This is my form:
<form action="http://utrecht.stadspas.xyz/forms/process/Nieuwsbrief" class="form" data-ajax="true" data-ajax_message="Sending..." data-validate="true" enctype="multipart/form-data" id="Nieuwsbrief" method="post" novalidate=""> <div class="form" id="form_590f166c2efdf"><script type="text/javascript"> // <![CDATA[ try { $(function(){ $('.error_highlight input:first').focus(); }); } catch(e){ }; // ]]> </script> <input class="email" id="email" name="email" placeholder="Vul uw e-mailadres in" required="" type="email" /> <input class="submit" id="Verstuur" name="Verstuur" type="submit" value="Inschrijven" /> <div id="nameError">&nbsp;</div> <input id="return_url" name="return_url" type="hidden" value="http://utrecht.stadspas.xyz/" /><input id="form_url" name="form_url" type="hidden" value="http://utrecht.stadspas.xyz/" /></div> <div class="messages">&nbsp;</div> </form>
Thanks a lot.

Comments

Sign In or Register to comment.