hi, i need to put this validation codes, like agreeing to my terms and conditions, field marked with a star... i've only managed to get it to send e mail, finally. So i need e codes for prompting them to fill in * fields.

my first page


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ACE tutor</title>
<style type="text/css">
<!--
.style1 {
font-family: verdana;
font-size: 16px;
font-weight: bold;
color: #272d39;
}
.style2 {
font-family: verdana;
font-size: 12px;
font-weight: bold;
color: #272d39;
}
-->
</style>
</head>

<body bgcolor="#777777">

<p class="style1">Student Registration</p>

<form method="post" action='studsubmit.php'>


<p class="style2">1. Enter your personal information below. </p>
<table width="657" border="0">
<tr>
<td width="117" height="29" class="style2">Name:</td>
<td width="530"><p>
<input name="name" type="text" id="name" size="30" />
<span class="style1">*</span> <span class="style2">(enter Child's name, if registering for your child) </span></p> </td>
</tr>
<tr>
<td class="style2">Child's Name:</td>
<td><input name="cname" type="text" id="cname" size="30" /></td>
</tr>
<tr>
<td class="style2">NRIC:</td>
<td><input name="ic" type="text" id="ic" size="30" maxlength="9" />
<span class="style1">*</span> </td>
</tr>
<tr>
<td class="style2">Contact no.: </td>
<td><input name="contact" type="text" id="contact" size="30" maxlength="11" />
<span class="style1">* </span></td>
</tr>
<tr>
<td class="style2">E-mail:</td>
<td><input name="email" type="text" id="email" size="30" />
<span class="style1">*</span> </td>
</tr>
<tr>
<td class="style2">Address:</td>
<td><input name="address" type="text" id="address" size="50" /></td>
</tr>
<tr>
<td height="33" class="style2">Race:</td>
<td><input name="race" type="text" id="race" size="20" />
<span class="style2">Gender: </span>
<input name="gender" type="radio" value="radiobutton" />
<span class="style2">Male
<input name="gender" type="radio" value="radiobutton" />
</span> <span class="style2">Female </span></td>
</tr>
</table>
<hr align="left" width="450">
<p class="style2">2. Provide us your education level and Subjects for your tuition.
</p>
</p>
<table width="384" border="0">
<tr>
<td width="117" class="style2">Education Level: </td>
<td width="257"><select name="edulvl" size="1" id="edulvl">
<option>Please Select</option>
<option>Primary 1</option>
<option>Primary 2</option>
<option>Primary 3</option>
<option>Primary 4</option>
<option>Primary 5</option>
<option>Primary 6</option>
<option>Secondary 1</option>
<option>Secondary 2</option>
<option>Secondary 3</option>
<option>Secondary 4</option>
<option>Secondary 5</option>
<option>Junior College Year 1</option>
<option>Junior College Year 2</option>
<option>Others</option>
</select>
<span class="style1">*</span> </td>
</tr>
</table>
<p class="style2">What Subjects do you want to have tuition on? : </p>
<p>
<textarea name="subjects" cols="50" rows="3" id="subjects"></textarea>
</p>
<hr align="left" width="450" />
<p class="style2">3. Select preferred tutor information: </p>
<table width="495" border="0">
<tr>
<td width="117" class="style2">Gender:</td>
<td width="368">
<select
name="tutgender" size="1" id="tutgender">
<option selected="selected">No Preference </option>
<option>Male </option>
<option>Female</option>
</select> </td>
</tr>
<tr>
<td class="style2">Race:</td>
<td>
<select
name="tutrace" size="1" id="tutrace">
<option selected="selected">No Preference </option>
<option>Chinese </option>
<option>Malay </option>
<option>Indian </option>
<option>Eurasian </option>
</select> </td>
</tr>
<tr>
<td class="style2">Qualifications:</td>
<td>
<select
name="tutqualification" size="1" id="tutqualification">
<option selected="selected">No Preference </option>
<option>'O' Level Graduate </option>
<option>'A' Level Graduate </option>
<option>Polytechnic Student </option>
<option>Diploma Holder </option>
<option>University Undergrad </option>
<option>University Graduate </option>
<option>School Teacher </option>
</select> </td>
</tr>
<tr>
<td class="style2">Experience:</td>
<td>
<select
name="tutexp" size="1" id="tutexp">
<option selected="selected">No Preference</option>
<option>One Year</option>
<option>Two Year</option>
<option>Three Year</option>
<option>More Than Three Year</option>
</select> </td>
</tr>
</table>
<hr align="left" width="450" />
<p class="style2">4. Include number of sessions and hours:</p>
<table width="495" border="0">
<tr>
<td width="117" class="style2">Budget:</td>
<td width="368"><span class="style4">
<input
name="budget" id="budget" size="10" />
</span><span class="style2"> per hour </span></td>
</tr>
<tr>
<td class="style2">No. of sessions: </td>
<td><span class="style4">
<input
name="session" id="session" size="10" />
</span><span class="style2">per week </span></td>
</tr>
<tr>
<td class="style2">No. of hours: </td>
<td><span class="style4">
<input
name="hours" id="hours" size="10" />
</span><span class="style2">per session</span> </td>
</tr>
</table>
<hr align="left" width="450" />
<p class="style2">5. Additional Requirements (if any):</p>
<p>
<textarea name="addrequire" cols="50" rows="3" id="addrequire"></textarea>
</p>
<hr align="left" width="450" />
<p><span class="style2">Please fill in all fields marked with a</span> <span class="style1">*</span> <span class="style2">. </span></p>
<p><span class="style5">
<input name="terms" type="checkbox" id="terms" />
</span><span class="style2">I agree to your Terms and Conditions.</span> </p>
<input name="reset" type="reset" id="reset" value="Reset" />
<input name="submit" type="submit" id="submit" value="Submit" />

</form>

</body>
</html>










and my 2nd page, which sends e mail



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>

<style type="text/css">
<!--
.style1 {
font-family: verdana;
font-size: 16px;
font-weight: bold;
color: #272d39;
}
.style2 {
font-family: verdana;
font-size: 12px;
font-weight: bold;
color: #272d39;
}
-->
</style>

</head>

<body bgcolor="#777777">

<div align="center">
<p>
<script language="php">
$email = $HTTP_POST_VARS[email];
$mailto = "mail@email.com";
$mailsubj = "Student Registration";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; }
if (!eregi("\n",$HTTP_POST_VARS[email])) { mail($mailto, $mailsubj, $mailbody, $mailhead); }
</script>

<br>
<br>
<br>
<br>
<br>
<br>
<center>
<br>
<span class="style1">Thank you.</span>
<br><br>
<span class="style1">
<br>
<span class="style2">We will contact you as soon as possible.
<br>
Your patience is very much appreciated.</span></p>
</div>
</body>
</html>





thanks a lot ^^