Skip to main content
Inspiring
March 19, 2009
Question

hidden field

  • March 19, 2009
  • 2 replies
  • 646 views
I have a class list table that has a classID. I want the classID hidden on the form but want it to populate the registration table when someone registers. so far - no go! pls see code. thank you - jim
This topic has been closed for replies.

2 replies

Inspiring
March 20, 2009
<label for="class">SESSION:</label>
<cfselect name="class" id="class" title="class">
<option selected="selected">Select a session</option>
<cfoutput query="signup">
<option value="#CLASSID#">#class#</option>
</cfoutput>
</cfselect>

you will see the values of #CLASS# column in the select list, but the
value submitted with the form will be the corresponding #CLASSID# value


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Inspiring
March 20, 2009
you can't have a hidden text field (or, really, any other element except
<option> and <optgroup>) INSIDE a select element.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/