Posted: Fri Apr 25, 2003 5:40 pm
[Admin Edit: Post moved from register_globals sticky thread]
mm, iv read this article over several times. i thaught i understood it but i cant get my code to work (in IE, works fine in moz/phoenix). anyone know what im doing wrong?
i broke it all up because there will be other content going around it when i get it working properly. i just dont know why this doens't work in IE at all. IE posts the image coordinates for the input but not the value, and moz posts all the info. dont know why either is happening 
mm, iv read this article over several times. i thaught i understood it but i cant get my code to work (in IE, works fine in moz/phoenix). anyone know what im doing wrong?
Code: Select all
<?php
if (!empty($_REQUESTї'Home']))
{$Home = 'ok';} else {$Home = 'nope';};
if (!empty($_REQUESTї'Forum']))
{$Forum = 'ok';} else {$Forum = 'nope';};
if (!empty($_REQUESTї'Contact']))
{$Contact = 'ok';} else {$Contact = 'nope';};
if (!empty($_REQUESTї'Gaming']))
{$Gaming = 'ok';} else {$Gaming = 'nope';};
if (!empty($_REQUESTї'Gallery']))
{$Gallery = 'ok';} else {$Gallery = 'nope';};
?>
<form action="test.php" method="get">
<input type="image" name="Home" src="button_home.gif" height="22" valign="bottom" value="Home">
<input type="image" name="Forum" src="button_forums.gif" height="22" value="Forum" />
<input type="image" name="Gallery" src="button_gallery.gif" height="22" value="Gallery" />
<input type="image" name="Gaming" src="button_onlinegaminginfo.gif" height="22" value="Gaming" />
<input type="image" name="Contact" src="button_contact.gif" height="22" value="Contact" />
</form>
<?
echo "home = $Home<br>";
echo "forum = $Forum<br>";
echo "gallery = $Gallery<br>";
echo "gaming = $Gaming<br>";
echo "contact = $Contact<br>";
?>