Folks,
I have created a small form that has a select list. I want the value of this select list passed to an update form when the user selects submit. I also have a hidden text field which gets passed also.
My hidden text field is passed fine. But i'm not get and value in the select when it is passed. The code is show below.
Any tips folks?
<FORM ACTION="editStudentRecordupdatecourse.cfm" METHOD="Post">
<CFOUTPUT>
<INPUT TYPE="hidden" name="studentID" value='#form.studentID#'>
</CFOUTPUT>
Course<br>
<SELECT name="courseID">
<OPTION value="">
<CFOUTPUT query="getcourses">
<OPTION value="#getstudentdetails.courseid#"> #getcourses.enrolcse# - #getcourses.title#
</CFOUTPUT>
</SELECT>
<p><INPUT TYPE="submit" NAME="Submitform" Value="Update Course">
</FORM>
I have created a small form that has a select list. I want the value of this select list passed to an update form when the user selects submit. I also have a hidden text field which gets passed also.
My hidden text field is passed fine. But i'm not get and value in the select when it is passed. The code is show below.
Any tips folks?
<FORM ACTION="editStudentRecordupdatecourse.cfm" METHOD="Post">
<CFOUTPUT>
<INPUT TYPE="hidden" name="studentID" value='#form.studentID#'>
</CFOUTPUT>
Course<br>
<SELECT name="courseID">
<OPTION value="">
<CFOUTPUT query="getcourses">
<OPTION value="#getstudentdetails.courseid#"> #getcourses.enrolcse# - #getcourses.title#
</CFOUTPUT>
</SELECT>
<p><INPUT TYPE="submit" NAME="Submitform" Value="Update Course">
</FORM>