use isset($action1) and isset($action2) to test each.

the nice way to do it would be for them to have the same name but different
values as you would do with alternative submit buttons, but I haven't ever
needed to find out how to do that and doesn't seem to be quite that simple.

        Tim Ward
        Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


> -----Original Message-----
> From: Zenith [mailto:[EMAIL PROTECTED]]
> Sent: 21 February 2001 17:51
> To: [EMAIL PROTECTED]
> Subject: How to get information from <input type=image ...>
> 
> 
> Hello everbody, if a have HTML document lik this:
> <form action = "submit_to.php">
>     <input type="image" src="xxx" name="action1">
>     <input type="image" src="xxx" name="action2">
> </form>
> 
> How can know whether the user is pressed on the "action1" or 
> "action2" image
> button??
> 
> 
> 

-- 
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