I have a page in an iframe that submits its form to the parent using '<form METHOD="POST" action="order.asp" id="orderitem" name="orderitem" target="_parent">' This has worked fine in other places of my web app. However, in this instance this is the code that submits the form:
<table align=center border=0 cellspacing="3">
<tr>
<td width="140" align=center>
<input type="submit" value="Customer Info" id="cust_info" name="submit1" class="button" onClick="passItAlong(orderitem, 7, 0)"></td>
<td width="140" align=center>
<input type="text" name="itemNum" value=1 size=2 maxlength=2>
of 1
<input type="submit" value="Go" id="go"name="submit1" class="button" onClick="passItAlong(orderitem, 8, 0)"></td>
<td width="140" align=center>
<input type=submit name="submit1" value="Summary" id="summary" name="submit1" class="button" onClick="passItAlong(orderitem, 9, 0)"></td>
</tr>
</table>
orderitem is the name of the form. It has 24 elements in it, the other 23 are in another table, also contained in the <form></form> tags. passItAlong sets the value of an input of type hidden.
My problem is that of those 24 elements the only one that is being passed to the next page is itemNum, which occures in the above code. On the page that this code occurs on it knows all the elements of orderitem.
Why isn't this working?!
Thanks in advance,
Earme
<table align=center border=0 cellspacing="3">
<tr>
<td width="140" align=center>
<input type="submit" value="Customer Info" id="cust_info" name="submit1" class="button" onClick="passItAlong(orderitem, 7, 0)"></td>
<td width="140" align=center>
<input type="text" name="itemNum" value=1 size=2 maxlength=2>
of 1
<input type="submit" value="Go" id="go"name="submit1" class="button" onClick="passItAlong(orderitem, 8, 0)"></td>
<td width="140" align=center>
<input type=submit name="submit1" value="Summary" id="summary" name="submit1" class="button" onClick="passItAlong(orderitem, 9, 0)"></td>
</tr>
</table>
orderitem is the name of the form. It has 24 elements in it, the other 23 are in another table, also contained in the <form></form> tags. passItAlong sets the value of an input of type hidden.
My problem is that of those 24 elements the only one that is being passed to the next page is itemNum, which occures in the above code. On the page that this code occurs on it knows all the elements of orderitem.
Why isn't this working?!
Thanks in advance,
Earme