Howdy, rusty php invasion alert!!
I am trying to produce an automated invoice maker to print out invoices based on criteria entered into textfields/areas etc. I have the form with all the stuff on it and a column containing checkboxes, if I want to add that product/service to the invoice I click that checkbox and change any pertinant information on the remaining columns, ie quantity etc. It should then add that to the invoice page after clicking submit. Problem is it adds all the entries to the page, all the products and services – oops!
I am using this code:
if ( $USED==’checked’); {
echo “<tr valign=’top’>
<td>”.$ITEMNUMB.”</td>
<td>”.$STOCKNUMB.”</td>
<td>”.$QTY.”</td>
<td>”.$UNIT.”</td>
<td>”.$DESCRIPTION.”</td>
<td>”.$PRICE.”</td>
<td>”.$AMOUNT.”</td>
</tr>”;
}
where $USED is the name of the checkbox and the rest are the item and its stuff. Each item/service has a block like this changed only by the use of an incremental number after each $xxx, ie $USED2, $USED3 etc.
Am I barking up the wrong tree as this seems like a very long winded way of going about this?
Any help would be appreciated on this.
Thankyou in advance.