I have a Select control in a form on my ASP page:
<select name="optPlayer Name" size="1" >
<option selected value = ""> Select the Player </option>
<option value = 1> Bob </option>
<option value = 2> Jeff </option>
<option value = 3> Wayne </option>
<option value = 4> Baz </option>
<option value = 5> Gilbert </option>
</select>
On form submit, it sends the value listed in the 'value=' statement to the server i.e It sends 1, rather than "Bob". Fair enough.
However, is there a way to access the text portion of the select statement as well i.e "Bob".
I want to do this so that I don't need to perform another request to the database to retrieve the Player Name in subsequent pages.
Thanks
The risk with keeping an open mind is having your brains fall out.
Shaunk
<select name="optPlayer Name" size="1" >
<option selected value = ""> Select the Player </option>
<option value = 1> Bob </option>
<option value = 2> Jeff </option>
<option value = 3> Wayne </option>
<option value = 4> Baz </option>
<option value = 5> Gilbert </option>
</select>
On form submit, it sends the value listed in the 'value=' statement to the server i.e It sends 1, rather than "Bob". Fair enough.
However, is there a way to access the text portion of the select statement as well i.e "Bob".
I want to do this so that I don't need to perform another request to the database to retrieve the Player Name in subsequent pages.
Thanks
The risk with keeping an open mind is having your brains fall out.
Shaunk