RE: [PHP] PHP_SELF NEW.....?????Continue

From: Date: Tue, 04 Sep 2001 07:10:00 +0000
Subject: RE: [PHP] PHP_SELF NEW.....?????Continue
Groups: php.general 
Request: Send a blank email to php-general+get-65852@lists.php.net to get a copy of this message
> my next question is: how does it work when I use PHP_SELF to > send a value of a variable to the same page? You use it to point your <FORM> there. <FORM ACTION='<?echo $PHP_SELF?>'> <INPUT TYPE=HIDDEN NAME='name' VALUE='<?echo $value?>'> <INPUT TYPE=SUBMIT VALUE='Go'> </FORM> Now, if the file this form is in gets renamed from foo.php to bar.php, the form won't break. Jason -- Jason Murray jasonm@melbourneit.com.au Web Developer, Melbourne IT "Work now, freak later!"

« previous php.general (#65852) next »