Dec 13 2002, 01:03 PM
When i use the following code it does not work.
<FORM ACTION="<?=$PHP_SELF?>" METHOD="post">
I do not get the correct value for the action. I think its some setting in my php.ini file, but don't know which one.
Dec 13 2002, 03:13 PM
it is not a setting in your php.ini file
$php_self is the current page that it
is on ...use it when you are posting
to the same page you get your information
from...try taking out the = sign also.
Dec 13 2002, 03:34 PM
I understand what the command does, i worded my question incorrectly. I have used this before on other webservers and all is fine. I asked about the php.ini file only because someone mentioned global_variables.
I tried taking out the equal sign. I added a space between the question mark and the $ sign, still nothing. When i view the source of the page, its not showing the current page, only shows.
FORM ACTION="<? $PHP_SELF ?>" METHOD="post">
Dec 13 2002, 03:56 PM
you have to set register_globals to On
in your php.ini file....that might fix it
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here