Re: determine action of a form dynamically?

From: Date: Tue, 03 Jun 2003 17:30:17 +0000
Subject: Re: determine action of a form dynamically?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-150028@lists.php.net to get a copy of this message
Best way to do this, in my opinion, is by using a javascript-code like this <input type="button" onClick="processForm('next.php');"> <input type="button" onClick="processForm('<?php echo $PHP_SELF; ?>');"> The javascript function would then look like this: function processForm(url) { document.forms[0].action = url; document.forms[0].submit(); } "Mukta Telang" <mukta@darya.nio.org> schreef in bericht news:3EDCBA03.E4CCB9C6@darya.nio.org... > Hi, > I want action of a form to be PHP_SELF untill user presses "continue" > button. > If continue button is pressed than "next.php" should be the action of > the form. > how to do this? > Thanks in advance, > Mukta

« previous php.general (#150028) next »