RE: [PHP] $_POST array order
| From: | Robert Cummings | Date: | Wed, 14 Mar 2007 22:28:31 +0000 |
| Subject: | RE: [PHP] $_POST array order | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250613@lists.php.net to get a copy of this message | ||
On Wed, 2007-03-14 at 17:23 -0500, Richard Lynch wrote:
> On Wed, March 14, 2007 12:28 pm, Brad Fuller wrote:
> > You could also omit the "name" parameter of the submit button and it
> > will
> > not even be passed at all.
> >
> > <input type="submit" value=" Submit Form ">
>
> I dunno about these new-fangled browsers, but in the old ones, you'd
> get "Submit" as the name if the user clicked on the button, and
> nothing if they just hit "enter" in a form field...
Can't rely on that these days. Don't remember which, but at least one of
them sends the first encountered submit button.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'