I have an order form. If choosen, the items should be printed in a table for a nice presentation, having product name and prices in columns. I have tried different ways but it did not work. It is not a MYSQL script. Can someone give me a hint?
<table width="100%">
<tr>
<td width="75%">item1......</td>
<td width="25%">total1</td>
</tr>
<tr>
<td>item2........</td>
<td>total2</td>
</tr>
</table>
<?php
$selection1 = $_POST['selection1'];
$selection2 = $_POST['selection2'];
print"Dear client,you ordered:<br /><br />";
$total1 =(100 * $selection1);
if ( !empty( $_POST["selection1"] ) ) {
print "$selection1item1 for 100$, total $total1 CHF ";
}
$total2 =(70 * $selection2);
if ( !empty( $_POST["selection2"] ) ) {
print "$selection2 item2 for 70$, total $total2 $";
}
?>
Thanks for your help