edmarriner Posted March 24, 2007 Share Posted March 24, 2007 hey, For some reason if i put a variable in the url it is not picked up for example www.example.com/profile.php?id=1 but if i put echo "$id"; in the page it comes out as blank. Its not the code becuase it works fine localy but its not working when i upload it to my server. is it somthing to do with a setting in php on the server? cheers, -ed Link to comment https://forums.phpfreaks.com/topic/44131-in-url-variables-not-workin/ Share on other sites More sharing options...
papaface Posted March 24, 2007 Share Posted March 24, 2007 You need to use echo $_GET['id']; and yes, on your server register globals is disabled (as it should be as it is a security risk having it enabled) locally it has register globals enabled (which ideally shouldnt be enabled) Link to comment https://forums.phpfreaks.com/topic/44131-in-url-variables-not-workin/#findComment-214291 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.