I hope you can understand most of this, I didn't note it, I was trying to do it fast... also... You can figure out the variable names, I sort of made them pretty obvious... At any rate, if you have questions just reply...
<html>
<head><title>Thingy Ma'Jigger</title>
</head>
<body>
<?php
if(!$submit) {
?>
<form action="test2.php" method="POST">
<select name="product">
<option>Select Product</option>
<option value="1">Big 'ol PC $4,500</option>
<option value="2">Smaller PC $2,300</option>
<option value="3">Tiny PC $1,000</option>
</select>
<br>
<select name="addon">
<option>Select Addition</option>
<option value="">No Addition</option>
<option value="1">WebCam $60</option>
<option value="2">Printer $120</option>
<option value="3">Scanner $140</option>
<option value="4">Flatscreen Monitor $240</option>
</select>
<br>
<select name="os">
<option>Operating System</option>
<option value="">No System</option>
<option value="1">Windows95 -FREE-</option>
<option value="2">Windows98se $30</option>
<option value="3">WindowsXP $120</option>
</select>
<br>
<input type="submit" name="submit" value="Enter Item">
<br></form>
<?php
} elseif($submit) {
$total = 0;
if(!$product) {
echo "You HAVE to select a product.<br>";
} elseif($product) {
$products = array(1=>array("name"=>"Big 'ol PC", "price"=>4500), 2=>array("name"=>"Smaller PC", "price"=>2300), 3=>array("name"=>"Tiny PC", "price"=>1000));
$productprice = "$" . number_format($products[$product]['price']);
echo "You have selected <b>" . $products[$product]['name'] . "</b> for the product. <font color=red>Price: " . $productprice . "</font><Br>";
$total += $products[$product]['price'];
if($addon) {
$addons = array(1=>array("name"=>"Webcam", "price"=>60), 2=>array("name"=>"Printer", "price"=>120), 3=>array("name"=>"Scanner", "price"=>140), 4=>array("name"=>"Flatscreen Monitor", "price"=>240));
$addonprice = "$" . number_format($addons[$addon]['price']);
echo "You have selected <b>" . $addons[$addon]['name'] . "</b> for <font color=red>" . $addonprice . "</font><br>";
$total += $addons[$addon]['price'];
}
if($os) {
$system = array(1=>array("name"=>"Windows95", "price"=>0), 2=>array("name"=>"Windows98se", "price"=>30), 3=>array("name"=>"WindowsXP", "price"=>120));
$systemprice = "$" . number_format($system[$os]['price']);
echo "You have selected <B>" . $system[$os]['name'] . "</b> <font color=red>" . $systemprice . "</font><br>";
$total += $system[$os]['price'];
}
$price = "$" . number_format($total);
echo "The total price is: <font color=red>" . $price . "</font><br>";
}
}
?>
</body>
</html>
shrugs Hope it helps.