Help - Search - Members - Calendar
Full Version: Php Question
Linuxhelp > Support > Technical Support
fmagoufis
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.
chrisw
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.
fmagoufis
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">
chrisw
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.
Invision Power Board © 2001-2017 Invision Power Services, Inc.