I can do as you suggest below, but then the buttons are labelled "Delete"
"Cancel" and "Save" to the user.
The essential point is that they all need to say "Delete". I know I can
accomplish this by making multiple forms, each with its own button but for
my purpose that's a pain is the ***.
IE returns the text displayed in the button regardless of the "btid" value.
It seems to just ignore it.
Firefox returns the value assigned to "btid" as I intended regardless of the
text in the button that the user sees.
----- Original Message -----
From: "Richard Heyes" <richard@xxxxxxx>
To: "Angus Mann" <angusmann@xxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Thursday, April 02, 2009 8:17 PM
Subject: Re: Button id's - firefox and IE different ?
Any suggestions ?
Try this:
<input type="submit" name="btid" value="Delete" />
<input type="submit" name="btid" value="Cancel" />
<input type="submit" name="btid" value="Save" />
And then you can check the value of $_POST['btid']. Oh and btw...
<center>... seriously?
That's so 9 years ago. ;-)
--
Richard Heyes
HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.net (Updated March 28th)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php