Clever bugger.
Oooh, but he DID want to send the user to different URL's.... ;)
I suppose with your example you could just use:
If($button1){
Header(Location:'.$url1);
exit;
}
Else if ($button2){
Header(Location:'.$url2);
exit;
}
-----Original Message-----
From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Christian Heilmann
Sent: Wednesday, August 09, 2006 10:16 AM
To: thelist at lists.evolt.org
Subject: Re: [thelist] html question.. simple
> <form action="url1.php">
> <input type="submit" value="button1 text" />
> </form>
>
> <form action="url2.php">
> <input type="submit" value="button2 text" />
> </form>
No need for several forms, just give the buttons names:
http://onlinetools.org/tricks/using_two_submit_buttons.php
If they are image buttons check for the x and y equivalents.
--
Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !