hye all. i have some enquiries on how to improve my signup feature.

basically i want it to autoconvert from IC number input field to their respective Date of Birth and Age.

plus, i've tried the validate feature in dreamweaver behavior list, but it seems that i still can submit the form after i've bypassed the error by clicking ok.

here's my php code for your diagnostics:

Code:
    <div id="sign-up-form">
      <div id="sign-up-form-container">
            <h2 align="center">Sign Up Form</h2> 
          <br/>
<form action="<?php echo $editFormAction; ?>" method="POST" name="SignUpForm" onsubmit="return VerifySignUp()">
                  <label>Username : </label>	
<input name="Username" type="text" size="25" maxlength="50" /><span class="red">*</span>
<br/>
                  <label>Password :</label>
                  <input name="Password" type="password" size="25" maxlength="50" /><span class="red">*</span><br/>
                  <label>Retype Password :</label>
                  <input name="RetypePassword" type="password" size="25" maxlength="50" /><span class="red">*</span><br/><br/>
                  <label>Full Name :</label>
                  <input name="FullName" type="text" size="25" maxlength="50" /><span class="red">*</span><br/>
                  <label>Phone :</label>
                  <input name="Phone" type="text" size="25" maxlength="50" /><span class="red">*</span><br/>
                  <label>IC :</label>
<input name="IC" type="text" size="25" maxlength="50" /><span class="red">*</span><br/>
                  <label>Age :</label>	
<input name="Age" type="text" id="Age" onblur="MM_validateForm('Age','','RisNum');return document.MM_returnValue" size="25" maxlength="50" />
<span class="red">*</span><br/>
                  Date Of Birth <br/>
                  <label>Day :</label>
                  
                  <select name="DOB_Day" size="1" style="width:150px;">
                    <option selected="selected">Select Day</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                    <option value="6">6</option>
                    <option value="7">7</option>
                    <option value="8">8</option>
                    <option value="9">9</option>
                    <option value="10">10</option>
                    <option value="11">11</option>
                    <option value="12">12</option>
                    <option value="13">13</option>
                    <option value="14">14</option>
                    <option value="15">15</option>
                    <option value="16">16</option>
                    <option value="17">17</option>
                    <option value="18">18</option>
                    <option value="19">19</option>
                    <option value="20">20</option>
                    <option value="21">21</option>
                    <option value="22">22</option>
                    <option value="23">23</option>
                    <option value="24">24</option>
                    <option value="25">25</option>
                    <option value="26">26</option>
                    <option value="27">27</option>
                    <option value="28">28</option>
                    <option value="29">29</option>
                    <option value="30">30</option>
                    <option value="31">31</option>
                  </select>
                  <span class="red">*</span>
                  <label>Month :</label>	

				<select name="DOB_Month" size="1" style="width:150px;">
                    <option selected="selected">Select Month</option>
                    <option value="1">1</option>
                    <option value="2">2</option>
                    <option value="3">3</option>
                    <option value="4">4</option>
                    <option value="5">5</option>
                    <option value="6">6</option>
                    <option value="7">7</option>
                    <option value="8">8</option>
                    <option value="9">9</option>
                    <option value="10">10</option>
                    <option value="11">11</option>
                    <option value="12">12</option>
				</select>
                  <label>Year :</label>
                  
                  <select name="DOB_Year" size="1" style="width:150px;">
                    <option selected="selected">Select Year</option>
                    <option value="1980">1980</option>
                    <option value="1981">1981</option>
                    <option value="1982">1982</option>
                    <option value="1983">1983</option>
                    <option value="1984">1984</option>
                    <option value="1985">1985</option>
                    <option value="1986">1986</option>
                    <option value="1987">1987</option>
                    <option value="1988">1988</option>
                    <option value="1989">1989</option>
                    <option value="1990">1990</option>
                  </select>
                  <span class="red">*</span>
                  <br/>
                  <label>Gender :</label>
<select name="Gender" size="1" style="width:150px;">
                    <option selected="selected">Select Gender</option>
                    <option value="Male">Male</option>
                    <option value="Female">Female</option>
                  </select><span class="red">*</span>
                  <br/>
                  <label>Email :</label>	
<input name="Email" type="text" id="Email" onblur="MM_validateForm('Email','','RisEmail');return document.MM_returnValue" size="20" maxlength="50" />
<span class="red">*</span><br/>
                  <label>Address No:</label>	
<input name="AddressNo" type="text" id="AddressNo" size="8" maxlength="20" />
<span class="red">*</span><br/>
             <label>Street Address :</label>
       <input name="StreetAddress" type="text" value="" size="50" maxlength="255"  height="100" style="height:100px;"/><span class="red">*</span>
       <br/><span class="red">*</span> - Required Fields
       <br/>
<input type="submit" name="Submit" value="Register" />
<input type="reset" name="Reset" value="Clear Input" />
<input type="hidden" name="MM_insert" value="SignUpForm" />
                </form>
    	</div>
</div>
    
    <div style=" height:900px;"></div>
    
    <div id="login-form" align="center" style="text-align:center">
      <h2> Login</h2> <br/>
<form action="<?php echo $loginFormAction; ?>" method="POST" name="LoginForm" onsubmit="return VerifyLogin()">
              <label>Username :</label><input name="Username" type="text" size="25" maxlength="50" /><br/>
              <label>Password :</label><input name="Password" type="password" size="25" maxlength="50" /><br/>
              <input type="submit"  name="Login" value="Login"/>
              <input type="reset" name="Reset" value="Clear Input" />
              
</form>

    </div>
    
     <div style=" height:900px;"></div>
      <a href="#top"><img src="image/launch2.png" alt="LAUNCH" width="60" height="40"  border="0" style="position:relative; float:right;" /></a>
     <div id="about">
    
    
	
</body>
</html>
<!-- 
syafeeq's PHP

-->