dntel
12-19-2007, 11:51 AM
hey people i really need some help validating this page so when u click submit if there is nothing in any of the text boxes it stops you:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Registration Page</title>
<style type="text/css">
<!--
.style1 {font-size: large}
body {
background-color: #000000;
}
.style4 {
font-family: Forte;
color: #FFFFFF;
}
-->
</style>
</head>
<body>
<p class="style1"> </p>
<table width="549" border="1" align="center">
<tr>
<td width="539"><img src="Images/PlanesRus2.jpg" width="700" height="150"></td>
</tr>
<tr>
<td><div align="center"><span class="style4">Please Enter Your Details Below: </span></div></td>
</tr>
<tr>
<td height="660"><div align="center">
<p> </p>
<form name="form1" method="post" action="RegisterBehind.php">
<p><img src="Images/FirstName.jpg" width="125" height="27"></p>
<p>
<input name="txtFirstName" type="text" id="txtFirstName">
</p>
<p> <img src="Images/LastName.jpg" width="123" height="26"></p>
<p>
<input name="txtLastName" type="text" id="txtLastName">
</p>
<p> <img src="Images/Email.jpg" width="75" height="24"></p>
<p>
<input name="txtEmail" type="text" id="txtEmail">
</p>
<p> <img src="Images/DesiredUsername.jpg" width="193" height="27"></p>
<p>
<input name="txtDesiredUsername" type="text" id="txtDesiredUsername">
</p>
<p> <img src="Images/password.jpg" width="107" height="25"></p>
<p>
<input name="txtPassword" type="password" id="txtPassword">
</p>
<p> <img src="Images/PasswordAgain.jpg" width="192" height="29"></p>
<p>
<input name="txtPasswordAgain" type="password" id="txtPasswordAgain">
</p>
<p> <input name="btnSubmit" type="submit" id="btnSubmit" value="Submit">
<input name="btnClear" type="submit" id="btnClear" value="Clear">
</p>
<p> </p>
</form>
<p>
<center>
</center>
</p>
<center>
</center>
</div></td>
</tr>
</table>
<p class="style1"> </p>
</body>
</html>
its an assignment and i got to do it quick id really appreciate the help! thanks!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Registration Page</title>
<style type="text/css">
<!--
.style1 {font-size: large}
body {
background-color: #000000;
}
.style4 {
font-family: Forte;
color: #FFFFFF;
}
-->
</style>
</head>
<body>
<p class="style1"> </p>
<table width="549" border="1" align="center">
<tr>
<td width="539"><img src="Images/PlanesRus2.jpg" width="700" height="150"></td>
</tr>
<tr>
<td><div align="center"><span class="style4">Please Enter Your Details Below: </span></div></td>
</tr>
<tr>
<td height="660"><div align="center">
<p> </p>
<form name="form1" method="post" action="RegisterBehind.php">
<p><img src="Images/FirstName.jpg" width="125" height="27"></p>
<p>
<input name="txtFirstName" type="text" id="txtFirstName">
</p>
<p> <img src="Images/LastName.jpg" width="123" height="26"></p>
<p>
<input name="txtLastName" type="text" id="txtLastName">
</p>
<p> <img src="Images/Email.jpg" width="75" height="24"></p>
<p>
<input name="txtEmail" type="text" id="txtEmail">
</p>
<p> <img src="Images/DesiredUsername.jpg" width="193" height="27"></p>
<p>
<input name="txtDesiredUsername" type="text" id="txtDesiredUsername">
</p>
<p> <img src="Images/password.jpg" width="107" height="25"></p>
<p>
<input name="txtPassword" type="password" id="txtPassword">
</p>
<p> <img src="Images/PasswordAgain.jpg" width="192" height="29"></p>
<p>
<input name="txtPasswordAgain" type="password" id="txtPasswordAgain">
</p>
<p> <input name="btnSubmit" type="submit" id="btnSubmit" value="Submit">
<input name="btnClear" type="submit" id="btnClear" value="Clear">
</p>
<p> </p>
</form>
<p>
<center>
</center>
</p>
<center>
</center>
</div></td>
</tr>
</table>
<p class="style1"> </p>
</body>
</html>
its an assignment and i got to do it quick id really appreciate the help! thanks!