RE: [PHP] forms and RETURN key
| From: | Matt Williams | Date: | Fri, 27 Apr 2001 12:53:24 +0000 |
| Subject: | RE: [PHP] forms and RETURN key | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-50614@lists.php.net to get a copy of this message | ||
> If I run this form using IE, hitting the Return/Enter key submits the form
> but the 'ok' variable is not set; it just redraws the form. If however, I
> uncomment the third echo line (the one for Name2), then hitting the
> Return/Enter key does have the desired effect in IE. In NS, the first
> version acts just like IE; the form redraws and that is all. But using the
> second variant with both text fields, hitting the Return key in NS does
> nothing at all.
>
I think this is the way it is.
Rather than testing for the value of submit, I have started adding a hidden
field called formname with the value being which ever form it is.
I then look for this instead of the value of the submit button
HTH
M@