Re: problem with submit button
| From: | Brian V Bonini | Date: | Fri, 16 May 2003 14:13:52 +0000 |
| Subject: | Re: problem with submit button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147894@lists.php.net to get a copy of this message | ||
On Thu, 2003-05-15 at 22:28, Riza Fahmi wrote:
> Hi all,
>
> I have a little problem here. Let say i have 1 page for login (have
> 2 textbox, name and password, and submit button). And if user click
> submit button, then go to 2nd page. In the 2nd page:
> <?
> if(isset($_POST['submit'])
> {
> print "Submit Button click";
> }
> else
> {
> print "Submit Button not click";
> }
> ?>
>
> the problem are, after user filled two textbox on login form, and
> then user push ENTER on his/her keyboard, in 2nd page appear "Submit
> Button not click". I want if they push ENTER, still appear "Submit
> Button click". Can anyone help me for this problems? By the way,
> thanks for the attention.
Your submit buttons name attribute is what you want to test for.
Are you sure the name attribute is set to 'submit'?