CODE USED FOR THE FORM
<form action="process.php" method="post">
<select name="item">
<option>Paint @ £4.50</option>
<option>Brushes @ £1.23</option>
<option>Erasers @ £1.05</option>
</select>
Quantity: <input name="quantity" type="text" />
<input type="submit" />
</form>
CODE USED (on the PHP page that process the form)
<html><body>
<?php
$item = $_POST['item'];
$quantity = $_POST['quantity'];
$price = $quantity * substr($item,-4,4);
echo "You ordered " . $quantity . " x " . $item . "<br />";
echo "Total price = £";
printf("%01.2f", $price);
echo "<br />";
echo "Thank you for ordering from KLBS Art Supplies!";
?>
</body></html>