Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Php Question, Cannot use PHP_SELF on forms
fmagoufis
post Dec 13 2002, 01:03 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 4-December 02
From: Boston
Member No.: 214



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.
Go to the top of the page
 
+Quote Post
chrisw
post Dec 13 2002, 03:13 PM
Post #2


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



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.


--------------------

Chris W.
Go to the top of the page
 
+Quote Post
fmagoufis
post Dec 13 2002, 03:34 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 16
Joined: 4-December 02
From: Boston
Member No.: 214



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">
Go to the top of the page
 
+Quote Post
chrisw
post Dec 13 2002, 03:56 PM
Post #4


RMS is my Hero
******

Group: Admin
Posts: 634
Joined: 27-September 02
From: Louisiana
Member No.: 5



you have to set register_globals to On
in your php.ini file....that might fix it


--------------------

Chris W.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th October 2017 - 01:48 PM