RE: [PHP] Graphical Submit Buttons
| From: | Robert Walker | Date: | Tue, 01 Aug 2000 15:14:41 +0000 |
| Subject: | RE: [PHP] Graphical Submit Buttons | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9458@lists.php.net to get a copy of this message | ||
Thomas,
The coordinates are in your HTTP_POST_VARS array. Here's how you can test
for the cancel button:
if ($HTTP_POST_VARS[cancel_x] > 0 || $HTTP_POST_VARS[cancel_y] > 0) {}
Robert
------------------------------------
Robert Walker rwalker@winbook.com
------------------------------------
When I was a child we had a sandbox.
It was a quicksand box.
I was an only child... eventually.
-----Original Message-----
From: Thomas Deliduka [mailto:thomas@neweve.com]
Sent: Tuesday, August 01, 2000 11:00 AM
To: PHP List
Subject: [PHP] Graphical Submit Buttons
According to this and what I've seen:
http://webreference.com/html/tutorial13/13.html#SUBHEAD-9
When you submit using a graphical submit button it sends over the
coordinates of the location, for instance if the button is of name: 'submit'
then it would pass through the form: submit.x=10 submit.y=10 (or whatever
coordinate you clicked on).
Now, I have two buttons: submit and cancel.
I wanted to check on the next page:
if ($cancel.x || $cancel.y) {
header("location: redirect.phtml");
exit;
}
But I'm finding that PHP doesn't recognize periods in variable names as per
http://www.php.net/manual/language.variables.php
So, how can I check for cancel? Is there a way?
Will have to have loop through the HTTP_POST_VARS and find one with the
keyname cancel.x ?
--
Thomas Deliduka
IT Manager
-------------------------
New Eve Media
The Solution To Your Internet Angst
http://www.neweve.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net