04-17-2009, 09:03 PM
|
#17 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Quote:
Originally Posted by Tanax
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?
|
|
|
|