Re: Submit a form with a link

From: Date: Tue, 29 Apr 2003 09:24:40 +0000
Subject: Re: Submit a form with a link
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145603@lists.php.net to get a copy of this message
Try this: <script language="JavaScript"> function go(){ document.forms.myform.submit(); } </script> <form name=myform ...............> ......... </form> <a href="" OnClick="go();return(FALSE);">Submit</a> I don't have time to test it , but it should work.. Alex ----- Original Message ----- From: "Shaun" <shaun@mania.plus.com> To: <php-general@lists.php.net> Sent: Tuesday, April 29, 2003 11:58 AM Subject: [PHP] Submit a form with a link > Hi, > > How can i submit values of a form to a new page with a link rather than a > button? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#145603) next »