Here is my header for my form.
<form action="/page" id="landing_form" method="post" style="top:<?php echo get_post_meta($p->ID, 'top', true); ?>px; left:<?php echo get_post_meta($p->ID, 'left', true); ?>px;" >
And a simple text field within my form, and submit button
<label>Email</label><input type="text" value="" id="landing_email" name="email" >
<input type="submit" name="submit" value="<?php echo get_post_meta($p->ID, 'button', true); ?>" class="landing_submit" id="landing_submit">
Now how would I make a function that checks if the email has a "."/"@" in it? Or is a specific string.
I have tried in my header to put something like onSubmit="return function('email);"
and then putting the function within the file.
However it doesn't even check the function, and just submits the form regardless.