Forum Moderators: coopster
I want to pass a simple variable in the following way - http://www.example.com/test.php?foo=hello, and I'm using the following code ...
<html>
<head>
<title>Foo</title>
</head>
<body>
<?php
echo $foo;
?>
</body>
</html>
Could a server problem, or a PHP configuration issue, prevent this from working (I get a blank page)?
What troubleshooting could I do to solve this?
Thanks.
http://www.example.com/test.php?foo=hello
...
<?php
echo $foo;
?>
<?php
echo $_GET['foo'];
?>
<edit>
As for troubleshooting...you could completely undermine any security on your server by changing php.ini to allow globals...or change your code.
[edited by: PHP_Chimp at 10:08 pm (utc) on Dec. 29, 2007]