I have the following script installed on my site:
<form method="POST" action="<input type="hidden" name="Redirect" value="<input type="hidden" name="To" value="postmaster@allianceleague.co.uk">
<p><small><font face="Verdana">Your name:<br>
<input type="text" name="name" size="15">
</font></small></p><p><small><font face="Verdana">Your email address:<br>
<input type="text" name="From" size="15">
<br><br>Your message:<br>
<textarea rows="4" name="message" cols="43"></textarea>
<br><br>
<input type="submit" value="Send message">
</font></small></p>
</form>
What I need to do now is to make sure certain fields have been filled in before the form is sent.
Does anyone know of a couple of lines of script I can add to the original so that when someone doesn't fill their email address in (for example) it re-directs to another page (created by me) saying so.
Many thanks in advance
<form method="POST" action="<input type="hidden" name="Redirect" value="<input type="hidden" name="To" value="postmaster@allianceleague.co.uk">
<p><small><font face="Verdana">Your name:<br>
<input type="text" name="name" size="15">
</font></small></p><p><small><font face="Verdana">Your email address:<br>
<input type="text" name="From" size="15">
<br><br>Your message:<br>
<textarea rows="4" name="message" cols="43"></textarea>
<br><br>
<input type="submit" value="Send message">
</font></small></p>
</form>
What I need to do now is to make sure certain fields have been filled in before the form is sent.
Does anyone know of a couple of lines of script I can add to the original so that when someone doesn't fill their email address in (for example) it re-directs to another page (created by me) saying so.
Many thanks in advance