Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Receipt printing... Help!!!

Status
Not open for further replies.

Kijori

Technical User
Jan 22, 2002
67
SG
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top