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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]> Sent: Monday, November 11, 2002 4:28 PM Subject: Re: [PHP] Submit hitting enter problem > on 11/11/02 2:16 PM, rija ([EMAIL PROTECTED]) 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php