Hi,
This PHP file displays correctly when I run it locally but not when I run it on my web site. I did do a page with phpinfo() remotely so I know it is parsing.
I have a simple PHP form with a GET Method located at where I can place values in the Radio Buttons and Check Boxes and the values display a URL as such.
It will not show the GET values when I run the following code:
I know this is probably very simple so your help is greatly appreciated.
Michael
This PHP file displays correctly when I run it locally but not when I run it on my web site. I did do a page with phpinfo() remotely so I know it is parsing.
I have a simple PHP form with a GET Method located at where I can place values in the Radio Buttons and Check Boxes and the values display a URL as such.
It will not show the GET values when I run the following code:
Code:
<?php
$Flavor = '123';
echo $Flavor;
$Flavor = $_GET['IceCream'];
echo $Flavor;
switch ($Flavor)
{
case 1:
echo "<img src='van.gif'>";
$Vehicle = 'Van';
break;
case 2:
echo "<img src='bus.gif'>";
$Vehicle = 'Bus';
break;
case 3:
echo "<img src='plane.jpg'>";
$Vehicle = 'Plane';
break;
}
echo '<h1>Enjoy your new ';
echo $Vehicle ;
echo '.';
echo'<br>';
echo '<h2>This Model Features:<br>';
$Topping1 = $_GET["Horn"];
if ($Topping1 <> '')
{echo $Topping1,'<br>';}
$Topping2 = $_GET["Belts"];
if ($Topping2 <> '')
{echo $Topping2,'<br>';}
$Topping3 = $_GET["Radio"];
if ($Topping3 <> '')
{echo $Topping3,'<br>';}
$Topping4 = $_GET["Door"];
if ($Topping4 <> '')
{echo $Topping4,'<br>';}
$Topping5 = $_GET["Brakes"];
if ($Topping5 <> '')
{echo $Topping5,'<br>';}
echo '</h2>'
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
</body>
</html>
I know this is probably very simple so your help is greatly appreciated.
Michael