Bob Lockie wrote:
I've got this psuedo code that works in the Mozilla browser but does not work in IE or Opera or Konqueror. The input type isn't passing a request name or value and I have a few buttons and I use the name passed to determine with button was pressed.
The PHP related thing
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<form method="get" action="main.php" name="domain" target="_parent">
<INPUT name="edit_ip" value="edit_ip" TYPE="image" SRC="images/editsmall.gif" HEIGHT="16" WIDTH="51" BORDER="0" ALT="edit IP addresses">
Mozilla passes: Request variables: $_REQUEST[edit_ip_x] = 33 $_REQUEST[edit_ip_y] = 10 $_REQUEST[edit_ip] = edit_ip $_REQUEST[PHPSESSID] = 5d156dbcb943a96f1c894223c59e471f
Konqueror passes: Request variables: $_REQUEST[edit_ip_x] = 30 $_REQUEST[edit_ip_y] = 6
Even assuming I'm not doing the session stuff right, shouldn't $_REQUEST[edit_ip] be passed reliably?
First I think your session stuff may be correct. If the browser accepts cookies it won't have PHPSESSID attached to the forms (IIRC)
Second: Nope. edit_id is not passed reliably. I ran into that problem
a few weeks ago. But It's easy to check nevertheless. edit_ip_x and edit_ip_y are passed reliably. So just do
if(is_set($_REQUEST["edit_ip_x"]))
//Do stuff
HTH, Oliver
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php