i'm creating ERP system to work with my pharmacy. in the billing form of that system i want to add items and print a bill. i have a little problem, where could i hold my 1st items information while i'm adding a second item to it.. my billing form is like this ( only a dummy)
<table width="490" height="282" border="0">
<tr>
<td width="206">Date</td>
<td width="160"> </td>
<td width="47"> </td>
<td width="69"> </td>
</tr>
<tr>
<td>Bill Number</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Item Code</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Item Name</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Expier Date</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>Item Price</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>Each</td>
<td>Total</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="adnother" id="adnother" value="add another item" tabindex="5" /></td>
<td><input type="submit" name="submit" id="submit" value="Submit" /></td>
<td> </td>
</tr>
</table>
while adding items to this form one by one, i want those items to be shown in a separate window on the same page (printable version of the bill) any way i can do it. the big problem i have is the thing that i said earlier. {sorry for my bad english :P }