i need some help on this. i've got a web page like this...
<!-- Online Menu -->
<form action='somefile.cgi' method='post'>
<table>
<tr><td><input type='text' name='qty1' onBlur='doCalculate()'><input type='hidden' name='item1' value='Burger'><input type='text' name='total1'></td></tr>
<tr><td><input type='text' name='qty2' onBlur='doCalculate()'><input type='hidden' name='item2' value='Sandwich'><input type='text' name='total2'></td></tr>
<tr><td><input type='text' name='qty3' onBlur='doCalculate()'><input type='hidden' name='item3' value='Milk'><input type='text' name='total3'></td></tr>
<tr><td><input type='text' name='qty4' onBlur='doCalculate()'><input type='hidden' name='item4' value='Coffee'><input type='text' name='total4'></td></tr>
<tr><td><input type='text' name='total'><input type='text' name='total'></td></tr>
</table>
<input type='submit' value='Pay'>
</form>
the doCalculate() function will automatically sums up the Total based on what was selected in the menu.
what i want to achieve when pressing the Pay button is to list the items seleted in the menu together with the quantity consumed, items consumed as well as the prices... something like a receipt.
how do i capture all these info using CGI.
<!-- Online Menu -->
<form action='somefile.cgi' method='post'>
<table>
<tr><td><input type='text' name='qty1' onBlur='doCalculate()'><input type='hidden' name='item1' value='Burger'><input type='text' name='total1'></td></tr>
<tr><td><input type='text' name='qty2' onBlur='doCalculate()'><input type='hidden' name='item2' value='Sandwich'><input type='text' name='total2'></td></tr>
<tr><td><input type='text' name='qty3' onBlur='doCalculate()'><input type='hidden' name='item3' value='Milk'><input type='text' name='total3'></td></tr>
<tr><td><input type='text' name='qty4' onBlur='doCalculate()'><input type='hidden' name='item4' value='Coffee'><input type='text' name='total4'></td></tr>
<tr><td><input type='text' name='total'><input type='text' name='total'></td></tr>
</table>
<input type='submit' value='Pay'>
</form>
the doCalculate() function will automatically sums up the Total based on what was selected in the menu.
what i want to achieve when pressing the Pay button is to list the items seleted in the menu together with the quantity consumed, items consumed as well as the prices... something like a receipt.
how do i capture all these info using CGI.