ozpo1
12-09-2005, 04:11 PM
My question is if it possible to save two variables in one select method, and post both of the variables on submit.
Example, if a user will choose Math in the following code, I want the value of category to be posted, but I want to send another variable, let say name="mathb", with it. is it possible to do it with no JS? and if not, how to do it with JS?
<form name="step1" action="http://localhost/Test.asp" method="post">
<b>Choose Category:</b>
<select name="Category" name1="dbcategory">
<option value="Math" value1="Math">Mathl</option>
<option value="English">English</option>
</select>
<br /><br />
<input type="submit" value="Next Step"/>
Thanks in Advanced. Oz.
Example, if a user will choose Math in the following code, I want the value of category to be posted, but I want to send another variable, let say name="mathb", with it. is it possible to do it with no JS? and if not, how to do it with JS?
<form name="step1" action="http://localhost/Test.asp" method="post">
<b>Choose Category:</b>
<select name="Category" name1="dbcategory">
<option value="Math" value1="Math">Mathl</option>
<option value="English">English</option>
</select>
<br /><br />
<input type="submit" value="Next Step"/>
Thanks in Advanced. Oz.