Okay, I admit that I am very confused at this point, and I'm not sure I've explained the issue I'm having properly.
As I described, and as I showed in the source code, I'm trying to get five hidden fields to show up in my form. When the form is rendered and I check the page source code, however, this is what I see:
<input name="studentid" type="hidden" value="3" /> | |
<input name="courseid" type="hidden" value="7" /> |
As you can see, only two of the hidden form elements even exist, even though the data have been set properly in those two elements. What's happening is that the other three hidden form elements are not even rendering into the form. So regardless of the data (which seem to be getting passed properly), how can I get these hidden form elements to show up on the page I'm building?
ETA: I've figured out what I was doing wrong and it was incredibly stupid. Thanks to all who were attempting to help out.