Re: Multiple SUBMIT Buttons and Default

From: Date: Fri, 09 Nov 2001 00:59:12 +0000
Subject: Re: Multiple SUBMIT Buttons and Default
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73977@lists.php.net to get a copy of this message
Hi I use java script like this: <head> <script language="javascript"> function highlight() {
        document.options.continue.focus();
} </script> </head> <body onload="highlight()"> <form name="options" action="whatever.php" method="post"> <input type="submit" name="cancel" value="Cancel"> <input type ="submit" name="continue" value="Continue"> </form> </body> Tom At 07:51 AM 9/11/01, Jason Caldwell wrote:
On some of my forms I have multiple Submit buttons; for example Button1 = Cancel, and Button2 = Continue Is there a way to make one of them the *default* button so that when a user presses their Return / Enter Key, *that default* button will be processed? Thanks. Jason jason@thinkingman.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#73977) next »