RE: [PHP] Retrieve key from $_POST
| From: | Vail, Warren | Date: | Tue, 06 Jan 2004 01:07:07 +0000 |
| Subject: | RE: [PHP] Retrieve key from $_POST | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173803@lists.php.net to get a copy of this message | ||
OK, found my answer, behaves like submit button, and I know from experience
that if I don't code a name parameter for the submit button, and in this
case probably a value, it doesn't get returned to the $_POST array.
Warren Vail
-----Original Message-----
From: Vail, Warren
Sent: Monday, January 05, 2004 5:00 PM
To: 'holmes072000@charter.net'; Robin Kopetzky
Cc: PHP General
Subject: RE: [PHP] Retrieve key from $_POST
is an "<INPUT TYPE=img" actually an input? I've never actually seen it used
that way. If not that may explain difficulty finding it in $_POST array.
Warren Vail
-----Original Message-----
From: John W. Holmes [mailto:holmes072000@charter.net]
Sent: Monday, January 05, 2004 4:49 PM
To: Robin Kopetzky
Cc: PHP General
Subject: Re: [PHP] Retrieve key from $_POST
Robin Kopetzky wrote:
> Is there any way to retrieve a key value from $_POST when there is more
than
> one $_POST array entry?
> I'm trying to retrieve the name of an 'INPUT TYPE="image"' control
> with
HTML
> because you can't pass a value back. I need to get the name of the control
> to use in a 'switch' statement.
array_search()??
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals - www.phparch.com
--
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