Good Morning All...
I am really baffled with what I am getting from a form input using an image...
Here is the form...
Basically it is a single form with 4 separate input images, each reloading the same page, but changing the value of the variable 'name'.
<form name="display" action="<?php echo $_SERVER['PHP_SELF'];?>">
<INPUT TYPE="image" name="page" value="Prep Zone" SRC="images/PrepZoneButton.png" HEIGHT="67" WIDTH="155" BORDER="0" ALT="Prep Zone">
<INPUT TYPE="image" name="page" value="Ramp Zone" SRC="images/RampZoneButton.png" HEIGHT="67" WIDTH="155" BORDER="0" ALT="Ramp Zone">
<INPUT TYPE="image" name="page" value="Light Zone" SRC="images/LightZoneButton.png" HEIGHT="67" WIDTH="155" BORDER="0" ALT="Light Zone">
<INPUT TYPE="image" name="page" value="Quantum Zone" SRC="images/QuantumZoneButton.png" HEIGHT="67" WIDTH="155" BORDER="0" ALT="Quantum Zone">
</form>
Upon reloading the page, the script determines which value is present, and shows the corresponding page display.
if ($page=='Prep Zone'){
$image='<img src="images/PrepZoneChartbanner.png" width="702" height="56">';
$pref='Prep';
}elseif($page=='Ramp Zone'){
$image='<img src="images/RampZoneChartbanner.png" width="702" height="56">';
$pref='Ramp';
}elseif($page=='Light Zone'){
$image='<img src="images/LightZoneChartbanner.png" width="702" height="56">';
$pref='Light';
}elseif($page=='Quantum Zone'){
$image='<img src="images/QuantumZoneChartBanner.png" width="702" height="56">';
$pref='Quantum';
}else{
$image='';
}
It works fine in firefox, although I notice something strange in the resulting URL
/zone_display.php?page.x=62&page.y=42&page=Ramp+Zone
That is everything past the domain name.
What I am confused with is the page.x=62&page.y=42& part.
I have no idea where that came from or what it represents... the page should be equal to 'Ramp+Zone'
And now I tested it on IE, and it shows /zone_display.php?page.x=50&page.y=41 in the url without the 'Ramp+Zone' part, so consequently it doesn't display the page at all that it is supposed to.
Any suggestions?
First on the apparent coodinates and second on why IE views it differently (like that is something new... LOL)
Thanks in advance.