Print.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Assignment037</title>
</head>
<body>
<p>
The driving students where just given a challege. The person who reached more than
120mph in one mile with their cars would receive a brand new BMW.<br />
Here are the results:
</p>
Raul 149mph<br />
Manuel 113mph<br />
Rigo 126mph<br />
Adrian 119mph<br />
Ivan 121mph<br />
Luis 97mph<br />
Joe 105mph<br />
Eddie 89mph<br /><br />
<?php
$raulsspeed=149;
$manuelsspeed=113;
$rigosspeed=126;
$adriansspeed=119;
$ivansspeed=121;
$luissspeed=97;
$joesspeed=105;
$eddiesspeed=89;
if ($raulsspeed >= 120 )
{
print("Raul, you get a brand new BMW.<br />");
}
if ($manuelsspeed >= 120)
{
print("Manuel, you get a brand new BMW.<br />");
}
if ($rigosspeed >= 120)
{
print("Rigo, you get a brand new BMW.<br />");
}
if ($adriansspeed >= 120)
{
print("Adrian, you get a brand new BMW.<br />");
}
if ($ivansspeed >= 120)
{
print("Ivan, you get a brand new BMW.<br />");
}
if ($luissspeed >= 120)
{
print("Luis, you get a brand new BMW.<br />");
}
if ($joesspeed >= 120)
{
print("Joe, you get a brand new BMW.<br />");
}
if ($eddiesspeed >= 120)
{
print("Eddie, you get a brand new BMW.<br />");
}
?>
</body>
</html>