$PHP_SELF variable access problem

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Sat Mar 29, 2003 2:18 am

I can't get the $PHP_SELF variable? I use PWS and CGI version of PHP.
And I'm not able to get any variables with get and post, does $name_of_object in the form help to get the value.? Should I set something in PHP.ini? The register_globals is turned OFF

New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK

Sat Mar 29, 2003 4:50 am

reg_global - off


$_SERVER['SERVER_VARIABLE'] - eg $_SERVER['PHP_SELF'] (note, case sensitive + upper case


note also the single quotes around the index (could use double - do use quotes though or you'll get an 'undefined index...assuming ' notice)
avatar image based upon nasas apod (only updates if I post though)

Post Reply