2 POST forms, not posting correctly
Posted by: crimsondryad
Posted on: 2007-07-10 15:01:00
I've been looking over these post forms looking for reasons why it's not posting the hidden $event_id. This value is being populated in the form when looking at the page source, but isn't getting passed to the event_signup.html page. Can anyone take a look and let me know if they see anything wrong? The html looks to be nested correctly....I thought maybe because there are 2 forms on the page and it's calling the validation function with "this"?
FYI, we use a heredoc on this page, hence no quotes and the like.
<table cellpadding=3 cellspacing=3>
<tbody>
<tr>
<td valign="top">
<form id="sign" name="sign" METHOD="post" action="event_signup.html" onSubmit="return validate_form(this);">
<input type="hidden" value="$event_id" />
<table cellpadding=3 cellspacing=3>
<tbody>
<tr>
<td colspan="2">Please enter your member ID<br />to make your reservation.<br /></td>
</tr>
<tr>
<td><legend for="customer_membership_id">Membership id:</legend></td>
<td><input name="customer_membership_id" id="customer_membership_id" type="text" size=14 value="" /></td>
</tr>
<tr>
<td colspan="2" align="right" id="form_id" name="form_id"></td>
</tr>
<tr>
<td colspan="2" align="right">
<table>
<tr>
<td><input type="submit" value="Make Reservation"></td>
<td width=20> </td>
<td><input type="reset" value="Clear"/></td>
</tr>
</table></td>
</tr>
</tbody>
</table></form></td>
<td width=60> </td>
<td valign="top">
<form id="signup" name="signup" METHOD="post" action="event_signup.html" onsubmit="return call_agenda(this);">
<table cellpadding=3 cellspacing=3>
<tbody>
<tr>
<td colspan="2" align="left">Send my member ID to<br />my registered e-mail address.<br /></td>
</tr>
<tr>
<td><legend for="customer_email">E-mail Adress:</legend></td>
<td><input name="customer_email" id="customer_email" type="text" size=20 value="" /></td>
</tr>
<tr>
<td colspan="2" align="right" id="form_content" name="form_content"></td>
</tr>
<tr>
<td colspan="2" align="right">
<table>
<tr>
<td><input type="submit" value="Send"></td>
<td width=20> </td>
<td><input type="reset" value="Clear"/></td>
</tr>
</table></td>
</tr>
</tbody>
</table></td>
</tbody>
</table>
<br/>
Not a member? <a href="/new_members.html">Register and signup here.</a>
</div>
================================
Angela Gann
CrimsonDryad Web Design Services
Web Design, Custom Software Development
http://www.crimsondryad.com