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" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php