<HTML> <HEAD><TITLE>Custom Quote</TITLE></HEAD> <BODY> <H1>Here is your custom quote</h1> <P>Your system will have:<BR> <? $price=0; switch ($cpu) { case "Pentium II": $price+=699; print "A Pentium II CPU<BR>"; break; case "Pentium III": $price+=899; print "A Pentium III CPU<BR>"; break; case "AMD K7": $price+=550; print "An AMD K7 CPU<BR>"; break; } switch ($mem) { case "32M": $price+=0; print "32 megabytes of RAM"; break; case "64M": $price+=50; print "64 megabytes of RAM"; break; case "128M": $price+=110; print "128 megabytes of RAM"; break; case "256M": $price+=180; print "256 megabytes of RAM"; break; } print "<BR>"; switch ($hard) { case "2G": $price+=0; print "2 gigabyte hard drive"; break; case "5G": $price+=60; print "5 gigabyte hard drive"; break; case "10G": $price+=99; print "10 gigabyte hard drive"; break; case "20G": $price+=190; print "20 gigabyte hard drive"; break; } print "<BR>"; print "Total price=$" . sprintf("%01.2f<BR>",$price); ?> <hr> <P>This is just an example, but here you could put an order form, or options for changing the configuration.</P> </BODY> </HTML>