Re: problem with submit button
| From: | Mike Morton | Date: | Fri, 16 May 2003 14:25:10 +0000 |
| Subject: | Re: problem with submit button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147895@lists.php.net to get a copy of this message | ||
Umm - maybe it is because you are missing a closing ) after the if:
if(isset($_POST['submit']) should be:
if(isset($_POST['submit']))
Not sure if that is the problem - that is definatly an error :)
On 5/15/03 10:28 PM, "Riza Fahmi" <riza.fahmi@myrealbox.com> 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.
>
> ---Riza Fahmi---
>
>
>
--
Cheers
Mike Morton
****************************************************
*
* Tel: 905-465-1263
* Email: mike@webtraxx.com
*
****************************************************
"Indeed, it would not be an exaggeration to describe the history of the
computer industry for the past decade as a massive effort to keep up with
Apple."
- Byte Magazine
Given infinite time, 100 monkeys could type out the complete works of
Shakespeare. Win 98 source code? Eight monkeys, five minutes.
-- NullGrey