Manga - Wordpress Themes - Debt Consolidation - Debt Consolidation - Debt Consolidation

PDA

View Full Version : URL variables do not come across


ojav
Apr 15th 2008, 10:55 am
I just installed PHP 5.0.18 on a SuSE Linux server. Everything else seems to work allright, but the variables which are sent with URL are ignored.

On a page with URL
mypage.php?variable=3


This code should print ´3´ , but it does not.
echo "$variable";


Did I overlook something when I installed PHP?

jayshah
Apr 15th 2008, 10:58 am
Hello,

It should be:

echo $_GET['variable'];


$variable will only be set if you set register_globals in PHP.ini to on.

Jay