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: [EMAIL PROTECTED] (Christian Haines)
> Newsgroups: php.general
> Date: Thu, 13 Sep 2001 23:44:30 +1030
> To: [EMAIL PROTECTED]
> 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
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to