Click to See Complete Forum and Search --> : <option> question


chrismartz
02-14-2005, 07:02 PM
How can I get the "My Room" stored into a hidden field to submit to my insert into database page out of <option value="19">My Room</option>

buntine
02-14-2005, 07:27 PM
<input type="hidden" name="MyRoom" value="19" />

chrismartz
02-14-2005, 08:08 PM
That won't have the value of "My Room"...I need something that will get the text from the option box and when the form is submitted i can request.form and get the text from certain option text areas, not the value though! This has to be possible...no?

buntine
02-14-2005, 09:46 PM
Wher are you getting the data from for the select box? Just look in the same place and get it again.

chrismartz
02-15-2005, 10:07 AM
That data is just a select box that I put hard coded on the page. I need to get the text within the option and store it and then the value is stored for another part. is this possible?

chrismartz
02-20-2005, 11:38 PM
any ideas?

buntine
02-21-2005, 01:16 AM
Just submit the form.... The value will be passed to the server where you will insert it into the database.

I must be misunderstanding you.

chrismartz
02-21-2005, 08:23 PM
never mind....got a idea figured out that works