corics15
08-19-2006, 04:24 AM
Hi!:)
I have a drop down list which contains the months from Jan-Dec. The problem is when i click the submit button , assuming there's an error on the form, the value selected on the drop down list disappears. please help? :confused:
here's the code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<form method="POST" action="sample.asp">
<p><select size="1" name="d_month">
<option selected>[Select a Month]</option>
<option>January</option>
<option>February</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>December</option>
</select></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
</body>
</html>
I have a drop down list which contains the months from Jan-Dec. The problem is when i click the submit button , assuming there's an error on the form, the value selected on the drop down list disappears. please help? :confused:
here's the code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<form method="POST" action="sample.asp">
<p><select size="1" name="d_month">
<option selected>[Select a Month]</option>
<option>January</option>
<option>February</option>
<option>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>December</option>
</select></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
</body>
</html>