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:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:22 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Submit buttons I'm horrible at javascript, does anyone have a script that will do this? Thanks again!! "Oliver Witt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php