View Single Post
Old 04-17-2009, 09:03 PM   #17 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by Tanax View Post
I think he's referring to this:
PHP Code:
htmlspecialchars($data);
//or perhaps this:
urlencode($data); 

Ok so I should do this?

$current_page = htmlspecialchars($_SERVER['PHP_SELF']);

Also, I was just thinking, what if we were to define the PHP_SELF like this:

define(CURRENT_PAGE,$_SERVER['PHP_SELF']);

Is that not a good idea?
allworknoplay is offline  
Reply With Quote