Decisions, decisions… - 4
<TITLE>PHP Course Example 1.2</TITLE>
<FORM METHOD="POST" ACTION="Example1_2.php">
What is the size of your car engine in liters?<INPUT NAME="size" TYPE="TEXT">
echo $size . " liters? ";
echo "Come on! Be serious here!";
} elseif (($size >= 0.5) && ($size < 1.0)) {
echo "I didn't know they still build these cars...";
} elseif (($size >= 1.0) && ($size < 1.5)) {
echo "Very economical of you!";
} elseif (($size >= 1.5) && ($size < 2.2)) {
echo "For that extra ummppph, but just not reaching it";
} elseif ($size >= 2.2) {
echo "Show-off! I bet you feel it in your wallet.";
echo "I must have made a horrible programming error if this is printed";