RE: [PHP] Re: Submit buttons

From: Date: Tue, 25 Feb 2003 21:32:53 +0000
Subject: RE: [PHP] Re: Submit buttons
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137144@lists.php.net to get a copy of this message
HTML: <input type="button" value="Text Displayed" name="ButtonName" onclick="DoThis()"> JS: Function DoThis(){ frmMain.method = "POST"; frmMain.action = "admin.php"; frmMain.submit(); } Where frmMain is the name for the FORM: <form name="frmMain"> Read all about it in: http://www.oreilly.com/catalog/jscript4/ Bryan -----Original Message----- From: Greg [mailto:gregchagnon@hotmail.com] Sent: Tuesday, February 25, 2003 12:22 PM To: php-general@lists.php.net Subject: [PHP] Re: Submit buttons I'm horrible at javascript, does anyone have a script that will do this? Thanks again!! "Oliver Witt" <oliverwitt@t-online.de> wrote in message news:3E5BCFC1.D1C7E878@t-online.de... > Greg schrieb: > > > Is there any way that I can have a form submit to different pages depending > > on the submit button that is pressed? Thanks! > > dont use submit buttons, but buttons... (type="button") calling a > script that > submits the form to whatever page you want it to. > Olli > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#137144) next »