Re: Submit hitting enter problem
| From: | rija | Date: | Mon, 11 Nov 2002 06:04:09 +0000 |
| Subject: | Re: Submit hitting enter problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123771@lists.php.net to get a copy of this message | ||
Really big thank to everybody,
But, now, I know what happening, because I check form submit using
isset($_POST['submit']), so if user don't press submit button,
$_POST['submit'] stay null even the rest is already sent. Then my script
send me back to the first page.
----- Original Message -----
From: "Justin French" <justin@indent.com.au>
To: <rija@vatu.com>; "php" <php-general@lists.php.net>
Sent: Monday, November 11, 2002 4:28 PM
Subject: Re: [PHP] Submit hitting enter problem
> on 11/11/02 2:16 PM, rija (rija@vatu.com) wrote:
>
>
> Actually, I miss-read your question... do you WANT the form to be
submitted
> when hitting return/enter???
>
> And you find that this is not happening when you are in a text field???
>
> Correct?
>
>
> This is a browser thing... I don't *think* there's anything in the
standards
> to say when hitting enter should/shouldn't work -- i think it's something
> that each browser will do differently.
>
> There may be something you can do with javascript.
>
>
> Perhaps check out:
>
> http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html
>
>
> Or find a similar form example on another site, and dig around thru the
code
> to have a look how they did it.
>
>
> Justin
>
>