Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hidden fields in select

Status
Not open for further replies.

nadskram

Programmer
May 21, 2001
41
US
i am actually doing this with asp
but i think its a weird html thing

i am looping through a recordset and adding options in a select box
as i add an option i want to also add a hidden form field so i can keep track of whos in my original select list
but when i add the hidden INSIDE the select, in between options, the html output gets all screwy

so i ended up writing my options, then moving first on the recordset and re-looping through the data to write the hidden values

i thought hidden form fields could go ANYWHERE
but i guess not in select/options
 
while you are looping instead of writing out the hidden fields in the select list (which is invalid html) why dont you just build a string with the hidden fields in then once you have written out all the options and written out the </select> tag then response.write your hidden fields string. I think this would be the easiest solution as there is very little to change

on error goto hell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top