I need to validate each text field which prompts users to make sure they enter in their details. I have a few queries like:-
a)Validate credit card details, the start and the end date.
b)Validate email addresses
c)Validate the first and the last name
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="900" border="0">
<tr>
<td width="155" bgcolor="#FF9900"> </td>
<td width="155" bgcolor="#FF9900"><div
align="center"><font color="#0000FF"><font color="#FFFFFF" size="+1"><strong> <td width="" bgcolor="#FF9900"> </td>
</tr>
<tr>
<td width="164" height="542" valign="top"><table width="155" border="0">
</table>
<table width="155" border="0" frame="void" >
<tr>
<td height="22" bgcolor="#FFFFFF"><img src="images/movie_reel.gif" width="157" height="141">
</td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF"><div align="center"><font color="#666666"> </font>
<a href="screen1.htm"><strong><font color="#ff9900" size="+1">HomePage
</font></strong></a> </div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong> </strong></font><strong><font color="#66CCFF" size="+1"><a href="screen2.htm">Book
Tickets</a></font></strong></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>Film
Reviews</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>Film
Search</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong><a href="screen10.htm">Cinema/Location</a></strong></font></div></td>
</tr>
<tr>
<td height="22" bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>Coming
Soon</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>Careers</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>About
Cinema</strong></font></div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>FAQs</strong></font></div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>Sign
In </strong></font></div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>New
Register </strong></font></div></td>
</tr>
</table>
<td bgcolor="#3366FF" valign="top"><table width="590" border="0">
<tr>
<td> <div align="center"></div></td>
</tr>
</table>
<table width="590" border="0">
<tr>
<td><div align="center"><font size="+7"><tt><font size="+7"><tt><font color="#FF9900" size="7" face="Arial"><dfn><strong><var><em><ins>Vue
Vision Cinema</ins></em></var></strong></dfn></font></tt></font></tt></font></div></td>
</tr>
<tr>
<td height="24"> </td>
</tr>
<tr>
<td><div align="center"><font color="#99FFFF" size="+3" face="Monotype Corsiva"><strong>Payment
Details </strong></font></div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="right"><strong><font color="#FFFF00" size="3">Help
| <a href="screen4.htm">Amend
Booking</a> | <a href="screen7.htm">Back</a> | <a href="screen9.htm">Next</a></font></strong></div></td>
</tr>
<tr>
<td height="269" bgcolor="#3366ff"> <table width="599" height="160" border="0" bordercolor="#3366FF">
<tr bgcolor="#FF9900">
<td height="22" colspan="4"> <div align="left"><font color="#FFFFFF" size="+2"><strong><font size="+1">Step
6- </font></strong></font><font color="#FFFFFF" size="+1"><strong>Please
complete the following details</strong></font></div></td>
</tr>
<tr bgcolor="#3366FF">
<td bgcolor="#3366FF"> </td>
<td bgcolor="#3366FF"> </td>
<td bgcolor="#3366FF"> </td>
<td> </td>
</tr>
<tr bgcolor="#3366FF">
<td width="149" bgcolor="#3366FF"><div align="right"><font color="#FFFF00"><strong>First
Name: </strong></font></div></td>
<td width="152" bgcolor="#3366FF"><font color="#3300CC">
<input type="text" name="Firstname">
</font></td>
<td valign="top"><div align="right"><font color="#FFFF00"><strong>Card
Type:</strong></font></div></td>
<td><div align="left"><font color="#3300CC">
<select name="CardType">
<option value="Visa">Visa
<option value="Switch">Switch
<option value="Mastercard">Mastercard
</select>
<select name="select">
<option value="Debit Card">D/D
<option value="Credit Card">C/C
<option value="Switch">Switch
</select>
</font></div></td>
</tr>
<tr bgcolor="#3366FF">
<td width="149" valign="top"><div align="right"><font color="#FFFF00"><strong><font color="#FFFF00">Last
Name:</font></strong></font></div></td>
<td width="152"> <div align="left"><font color="#3300CC">
<input type="text" name="Lastname">
</font></div></td>
<td valign="top"><div align="right"><font color="#FFFF00"><strong>Card
Number:</strong></font></div></td>
<td> <div align="left"><font color="#3300CC">
<input type="text" name="CardNumber">
</font></div></td>
</tr>
<tr bgcolor="#3366FF">
<td colspan="" valign="top"><div align="right"><strong><font color="#FFFF00">Email
Address:</font></strong></div></td>
<td> <div align="left"><font color="#3300CC">
<input type="text" name="Emailaddress">
</font></div></td>
<td valign="top"><div align="right"><font color="#FFFF00"><strong>Expiry
Date:</strong></font></div></td>
<td> <div align="left"><font color="#3300CC">
<select name="expirydatemonth">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
<font color="#FFFFFF">(mon)</font></font> <font color="#3300CC">
<select name="adulttickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
<font color="#FFFFFF">(yr)</font></font></div></td>
</tr>
<tr bgcolor="#3366FF">
<td width="149" height="26" valign="top"><div align="right"><strong><font color="#FFFF00">No.
of Adult tickets:</font></strong></div></td>
<td width="152"> <div align="left"><strong><font color="#FFFFFF">
<select name="adulttickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
@ £6.30 each</font></strong></div></td>
<td valign="top" height="31"><div align="right"><font color="#FFFF00"><strong>Start
Date:</strong></font></div></td>
<td><div align="left"><font color="#3300CC">
<select name="adulttickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
<font color="#FFFFFF">(mon)</font></font> <font color="#3300CC">
<select name="adulttickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
<font color="#FFFFFF">(yr)</font></font></div></td>
</tr>
<tr bgcolor="#3366FF">
<td valign="top"><div align="right"><strong><font color="#FFFF00">No.
of student tickets:</font></strong></div></td>
<td valign="top"> <div align="left"><strong><font color="#FFFFFF">
<select name="studenttickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
@ £4.70 each</font></strong></div></td>
<td valign="top"><div align="right"><font color="#FFFF00"><strong>Issue
No: </strong></font></div></td>
<td> <div align="left">
<select name="IssueNo">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
</select>
</div></td>
</tr>
<tr bgcolor="#3366FF">
<td><div align="right"><font color="#FFFF00"><strong>Nus No:</strong></font></div></td>
<td><input type="text" name="Lastname2"></td>
<td width="106"> </td>
<td width="174"> </td>
</tr>
<tr bgcolor="#3366FF">
<td valign="top"><div align="right"><strong><font color="#FFFF00">No.
of children tickets:</font></strong></div></td>
<td> <div align="left"><strong><font color="#FFFFFF">
<select name="childrentickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
@ £4.70 each</font></strong></div></td>
<td><div align="right"><font color="#FFFF00" size="4"><strong>Total
to Pay:</strong></font></div></td>
<td> <div align="left"><strong><font color="#FFFFFF" size="5">
£11.00</font></strong></div></td>
</tr>
<tr bgcolor="#3366FF">
<td valign="top"><div align="right"><strong><font color="#FFFF00">No.
of O.A.P tickets:</font></strong></div></td>
<td> <div align="left"><strong><font color="#FFFFFF">
<select name="OAPtickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
@ £4.70 each</font></strong></div></td>
<td> </td>
<td><strong><font color="#000000" size="1">(Handling fee of 50p
on each ticket)</font></strong></td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center"><img src="images/Disabilitypicts.GIF" width="46" height="27"><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">
We do cater for all disability, If you need any further assistant
please so not hesitate to call us on 0870 123 4567</font> <font color="#FFFF33" size="+4" face="Monotype Corsiva">
</font></div></td>
</tr>
</table>
<td width="195" bgcolor="#FFFFFF" valign="top"><table width="155" border="0">
<tr>
<td><img src="Images/Cheaperbythedozen.gif" width="157" height="255"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><img src="images/lordoftherings2.gif" width="157" height="255"></td>
</tr>
</table></td>
</tr>
<tr >
<tr>
<td width="155" height="22" bgcolor="#FF9900"> </td>
<td width="155" bgcolor="#FF9900"><div align="center"><font color="#0000FF"> <font color="#0000FF"><font color="#FFFFFF" size="+1"><strong> <td width="" bgcolor="#FF9900"> </td>
</table>
</body>
</html>
a)Validate credit card details, the start and the end date.
b)Validate email addresses
c)Validate the first and the last name
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="900" border="0">
<tr>
<td width="155" bgcolor="#FF9900"> </td>
<td width="155" bgcolor="#FF9900"><div
align="center"><font color="#0000FF"><font color="#FFFFFF" size="+1"><strong> <td width="" bgcolor="#FF9900"> </td>
</tr>
<tr>
<td width="164" height="542" valign="top"><table width="155" border="0">
</table>
<table width="155" border="0" frame="void" >
<tr>
<td height="22" bgcolor="#FFFFFF"><img src="images/movie_reel.gif" width="157" height="141">
</td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF"><div align="center"><font color="#666666"> </font>
<a href="screen1.htm"><strong><font color="#ff9900" size="+1">HomePage
</font></strong></a> </div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong> </strong></font><strong><font color="#66CCFF" size="+1"><a href="screen2.htm">Book
Tickets</a></font></strong></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>Film
Reviews</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>Film
Search</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong><a href="screen10.htm">Cinema/Location</a></strong></font></div></td>
</tr>
<tr>
<td height="22" bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>Coming
Soon</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>Careers</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>About
Cinema</strong></font></div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>FAQs</strong></font></div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>Sign
In </strong></font></div></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"><div align="center"><font color="#ff9900"><strong>New
Register </strong></font></div></td>
</tr>
</table>
<td bgcolor="#3366FF" valign="top"><table width="590" border="0">
<tr>
<td> <div align="center"></div></td>
</tr>
</table>
<table width="590" border="0">
<tr>
<td><div align="center"><font size="+7"><tt><font size="+7"><tt><font color="#FF9900" size="7" face="Arial"><dfn><strong><var><em><ins>Vue
Vision Cinema</ins></em></var></strong></dfn></font></tt></font></tt></font></div></td>
</tr>
<tr>
<td height="24"> </td>
</tr>
<tr>
<td><div align="center"><font color="#99FFFF" size="+3" face="Monotype Corsiva"><strong>Payment
Details </strong></font></div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="right"><strong><font color="#FFFF00" size="3">Help
| <a href="screen4.htm">Amend
Booking</a> | <a href="screen7.htm">Back</a> | <a href="screen9.htm">Next</a></font></strong></div></td>
</tr>
<tr>
<td height="269" bgcolor="#3366ff"> <table width="599" height="160" border="0" bordercolor="#3366FF">
<tr bgcolor="#FF9900">
<td height="22" colspan="4"> <div align="left"><font color="#FFFFFF" size="+2"><strong><font size="+1">Step
6- </font></strong></font><font color="#FFFFFF" size="+1"><strong>Please
complete the following details</strong></font></div></td>
</tr>
<tr bgcolor="#3366FF">
<td bgcolor="#3366FF"> </td>
<td bgcolor="#3366FF"> </td>
<td bgcolor="#3366FF"> </td>
<td> </td>
</tr>
<tr bgcolor="#3366FF">
<td width="149" bgcolor="#3366FF"><div align="right"><font color="#FFFF00"><strong>First
Name: </strong></font></div></td>
<td width="152" bgcolor="#3366FF"><font color="#3300CC">
<input type="text" name="Firstname">
</font></td>
<td valign="top"><div align="right"><font color="#FFFF00"><strong>Card
Type:</strong></font></div></td>
<td><div align="left"><font color="#3300CC">
<select name="CardType">
<option value="Visa">Visa
<option value="Switch">Switch
<option value="Mastercard">Mastercard
</select>
<select name="select">
<option value="Debit Card">D/D
<option value="Credit Card">C/C
<option value="Switch">Switch
</select>
</font></div></td>
</tr>
<tr bgcolor="#3366FF">
<td width="149" valign="top"><div align="right"><font color="#FFFF00"><strong><font color="#FFFF00">Last
Name:</font></strong></font></div></td>
<td width="152"> <div align="left"><font color="#3300CC">
<input type="text" name="Lastname">
</font></div></td>
<td valign="top"><div align="right"><font color="#FFFF00"><strong>Card
Number:</strong></font></div></td>
<td> <div align="left"><font color="#3300CC">
<input type="text" name="CardNumber">
</font></div></td>
</tr>
<tr bgcolor="#3366FF">
<td colspan="" valign="top"><div align="right"><strong><font color="#FFFF00">Email
Address:</font></strong></div></td>
<td> <div align="left"><font color="#3300CC">
<input type="text" name="Emailaddress">
</font></div></td>
<td valign="top"><div align="right"><font color="#FFFF00"><strong>Expiry
Date:</strong></font></div></td>
<td> <div align="left"><font color="#3300CC">
<select name="expirydatemonth">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
<font color="#FFFFFF">(mon)</font></font> <font color="#3300CC">
<select name="adulttickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
<font color="#FFFFFF">(yr)</font></font></div></td>
</tr>
<tr bgcolor="#3366FF">
<td width="149" height="26" valign="top"><div align="right"><strong><font color="#FFFF00">No.
of Adult tickets:</font></strong></div></td>
<td width="152"> <div align="left"><strong><font color="#FFFFFF">
<select name="adulttickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
@ £6.30 each</font></strong></div></td>
<td valign="top" height="31"><div align="right"><font color="#FFFF00"><strong>Start
Date:</strong></font></div></td>
<td><div align="left"><font color="#3300CC">
<select name="adulttickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
<font color="#FFFFFF">(mon)</font></font> <font color="#3300CC">
<select name="adulttickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
<font color="#FFFFFF">(yr)</font></font></div></td>
</tr>
<tr bgcolor="#3366FF">
<td valign="top"><div align="right"><strong><font color="#FFFF00">No.
of student tickets:</font></strong></div></td>
<td valign="top"> <div align="left"><strong><font color="#FFFFFF">
<select name="studenttickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
@ £4.70 each</font></strong></div></td>
<td valign="top"><div align="right"><font color="#FFFF00"><strong>Issue
No: </strong></font></div></td>
<td> <div align="left">
<select name="IssueNo">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
</select>
</div></td>
</tr>
<tr bgcolor="#3366FF">
<td><div align="right"><font color="#FFFF00"><strong>Nus No:</strong></font></div></td>
<td><input type="text" name="Lastname2"></td>
<td width="106"> </td>
<td width="174"> </td>
</tr>
<tr bgcolor="#3366FF">
<td valign="top"><div align="right"><strong><font color="#FFFF00">No.
of children tickets:</font></strong></div></td>
<td> <div align="left"><strong><font color="#FFFFFF">
<select name="childrentickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
@ £4.70 each</font></strong></div></td>
<td><div align="right"><font color="#FFFF00" size="4"><strong>Total
to Pay:</strong></font></div></td>
<td> <div align="left"><strong><font color="#FFFFFF" size="5">
£11.00</font></strong></div></td>
</tr>
<tr bgcolor="#3366FF">
<td valign="top"><div align="right"><strong><font color="#FFFF00">No.
of O.A.P tickets:</font></strong></div></td>
<td> <div align="left"><strong><font color="#FFFFFF">
<select name="OAPtickets">
<option value="0">0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">6
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
<option value="10">10
</select>
@ £4.70 each</font></strong></div></td>
<td> </td>
<td><strong><font color="#000000" size="1">(Handling fee of 50p
on each ticket)</font></strong></td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center"><img src="images/Disabilitypicts.GIF" width="46" height="27"><font color="#FFFFFF" size="2" face="Times New Roman, Times, serif">
We do cater for all disability, If you need any further assistant
please so not hesitate to call us on 0870 123 4567</font> <font color="#FFFF33" size="+4" face="Monotype Corsiva">
</font></div></td>
</tr>
</table>
<td width="195" bgcolor="#FFFFFF" valign="top"><table width="155" border="0">
<tr>
<td><img src="Images/Cheaperbythedozen.gif" width="157" height="255"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><img src="images/lordoftherings2.gif" width="157" height="255"></td>
</tr>
</table></td>
</tr>
<tr >
<tr>
<td width="155" height="22" bgcolor="#FF9900"> </td>
<td width="155" bgcolor="#FF9900"><div align="center"><font color="#0000FF"> <font color="#0000FF"><font color="#FFFFFF" size="+1"><strong> <td width="" bgcolor="#FF9900"> </td>
</table>
</body>
</html>