Re: problem with PHP_SELF

From: Date: Mon, 24 Jun 2002 14:47:37 +0000
Subject: Re: problem with PHP_SELF
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103601@lists.php.net to get a copy of this message
On Monday 24 June 2002 22:42, DoL wrote: > Hi All > > I would like to submit a form to call itself, and according to some > references I could use the $PHP_SELF variable in action attribute of the > form element in a HTML document > But it is not working for me, please help. > > I have this line of code > <form action="<?php echo $PHP_SELF; ?>" method="POST" > > > in the html source page, I get > <form action="" method="POST"> > > Can anyone advice what did I missed here? > Would this have anything to do with php or/and apache configuration? You're probably using a newer version of php (4.1.x+). If so, then you need to refer to $PHP_SELF as $_SERVER['PHP_SELF']. Read the release notes for your version of PHP or read the php.ini or RTFM for more details. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* There but for the grace of God, goes God. -- Winston Churchill, speaking of Sir Stafford Cripps. */

« previous php.general (#103601) next »