sglearner Posted July 31, 2007 Share Posted July 31, 2007 Hi guys, I need some help. my php script is working fine yesterday morning. In the afternoon, the scripts cannot function. It something to do with the variables. I using the print function <?php print $name ?> The variable is not able to capture from the url. for example www.xyzabac.com/?name=newbie. With the print function it should print out the variable data newbie, but it appear to be blank. This problem also appear in my form script. the data I got is blank. I also cannot get the cookie variable data. I have check with my hosting company, they push the blame to the script. Anyone can help me to solve this problem.. Thank You Quote Link to comment https://forums.phpfreaks.com/topic/62612-variable-not-working/ Share on other sites More sharing options...
calabiyau Posted July 31, 2007 Share Posted July 31, 2007 Try <?php print $_GET['name']; ?> and for your forms print $_POST['variable_name']; Quote Link to comment https://forums.phpfreaks.com/topic/62612-variable-not-working/#findComment-311669 Share on other sites More sharing options...
sglearner Posted July 31, 2007 Author Share Posted July 31, 2007 ok I try that Quote Link to comment https://forums.phpfreaks.com/topic/62612-variable-not-working/#findComment-311671 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.