View Full Version : php_self doesn't work when you have $_GET values in link

01-08-2012, 01:55 PM
For example my link is:

profile.php?id=1, if I use $_SERVER['PHP_SELF'], I would just get profile.php, but I also need the ?id=1. Does anyone have an idea how I could do this.

01-08-2012, 01:57 PM
Please post your source code and a link to the page.