Re: internet explorer and form submission
| From: | Christian Haines | Date: | Thu, 13 Sep 2001 13:52:58 +0000 |
| Subject: | Re: internet explorer and form submission | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67223@lists.php.net to get a copy of this message | ||
sorry i just figured it out...just panicked...must be the time of year
if(!isset($delete))
{
// do update
}
if(isset($delete))
{
// do delete
}
that should fix the problem
> From: cmh@cobweb.com.au (Christian Haines)
> Newsgroups: php.general
> Date: Thu, 13 Sep 2001 23:44:30 +1030
> To: php-general@lists.php.net
> Subject: internet explorer and form submission
>
> hi all,
>
> i have just discovered a bug with internet explorer form submission.
>
> suppose i have a form with 2 submit buttons to do different things eg-
>
> <form name=form method=post action=something.php>
>
> <input type=submit name=update value=update>
> <input type=submit name=delete value=delete>
>
> </form>
>
> one to update content and one to delete content then in my processing file i
> have
>
> if(isset($update))
> {
> // do update
> }
>
> if(isset($delete))
> {
> // do delete
> }
>
> so if a particular form button is clicked a different process will occcur.
>
> well what happens if i press return to enter my form submission?
> nothing is set!
>
> so the processing file does nothing
>
> any thoughts?
>
> christian
>