Re: 1 Form, 2 Submit-Buttons
| From: | Leonid Vaner | Date: | Fri, 12 Jul 2002 06:18:12 +0000 |
| Subject: | Re: 1 Form, 2 Submit-Buttons | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107321@lists.php.net to get a copy of this message | ||
give a name to the buttons ie: Next
<input name="Next" type="image" id="Next"
src="whatever">
and check in php
<?
if(isset($Next.x) && isset($Next.y)){
// do somehting here
}
?>
do the same with Previous
"Martin Thoma" <martin@radiok2r.de> wrote in message
news:3D2E7264.4C4B50A7@radiok2r.de...
> Hello! I want to make a form (a wizard) which has 2 Submit-Buttons (Back
> & Next). The buttons should be images. How can I make php see, which
> button has been pressed?
>
> Martin
>
>