Would anyone like to have a quick look at this code and let me know what i need to do for the following?
validate the form with a pop up error message for blank fields
only numbers accepted for the phone number
an proper email address only for the email bit such as <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
Thanks....
code:
<html>
<head>
<title>Contact Page</title>
</head>
<body>
<form name="form1" method="POST" action="/mail.cgi">
<p>name<input type="text" name="name" size="20"></p>
<p>address<input type="text" name="address" size="20"></p>
<p>phone <input type="text" name="phone" size="20"></p>
<p>email address<input type="text" name="email" size="20"></p>
<p><input type="submit" value=http://www.webdeveloper.com/forum/archive/index.php/"Submit" name="subbutt"><input type="reset" value="Reset" name="rebutt"></p>
</form>
</body>
</html>
validate the form with a pop up error message for blank fields
only numbers accepted for the phone number
an proper email address only for the email bit such as <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
Thanks....
code:
<html>
<head>
<title>Contact Page</title>
</head>
<body>
<form name="form1" method="POST" action="/mail.cgi">
<p>name<input type="text" name="name" size="20"></p>
<p>address<input type="text" name="address" size="20"></p>
<p>phone <input type="text" name="phone" size="20"></p>
<p>email address<input type="text" name="email" size="20"></p>
<p><input type="submit" value=http://www.webdeveloper.com/forum/archive/index.php/"Submit" name="subbutt"><input type="reset" value="Reset" name="rebutt"></p>
</form>
</body>
</html>