hublife Posted March 5, 2007 Share Posted March 5, 2007 Hi, Recently my webhosting company has a hard disk crash. After they solve their problem, my website php is not working properly. As last time my website php script can capture the variable using the url. For example, http://www.mywebsite.com?name=noone. If I use the <?php print $name ?> , it able to put the value of "noone" into the variable. After my webhosting company recover from the crash, It cannot, the value is equal to nothing. What seem to be the problem? Anyone can help, because my webhosting company is still locating the problem for 3 days.... Thanks Link to comment https://forums.phpfreaks.com/topic/41298-php-script-not-working/ Share on other sites More sharing options...
trq Posted March 5, 2007 Share Posted March 5, 2007 You need to access the variable via the $_GET array as register globals is now (and has been for a long time) off by default in php for security reasons. <?php print $_GET['name']; ?> Link to comment https://forums.phpfreaks.com/topic/41298-php-script-not-working/#findComment-200114 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.