|
Hi.. can anybody tell me how to hyperlink the output of an if statement to a new document.
This is my document:
<?php echo "
<html>
<head>
</head>
<body>
your aperture width is";
foreach ($_POST as $field => $apwidth)
{
echo " $apwidth ";
}
?> mm
<?php
$doorsize2 = (($apwidth + 30) / 2);
$doorsize3 = (($apwidth + 60) / 3);
$doorsize4 = (($apwidth + 90) / 4);
$doorsize5 = (($apwidth + 120) / 5);
/* hopefully the echo of the 1st if statement will make clear what i want to do*/
if ($appwidth < '2000')
{
echo "newdocument.php";
}
elseif ($apwidth < '3000' and $apwidth > '2000')
{
echo "<br>you need 3 doors $doorsize3 mm wide each";
}
elseif ($apwidth < '4000' and $apwidth > '3000')
{
echo "<br>you need 4 doors $doorsize4 mm wide each";
}
elseif ($apwidth < '5000' and $apwidth > '4000')
{
echo "<br>you need 5 doors $doorsize5 mm wide each";
}
else
{
echo "<br> please call ********** for assistance";
}
?>
</body>
</html>
Thanks for pondering guys & girls
Last edited by hiptobesquare; 04-27-2005 at 11:40 AM..
|