hello, I am not certain what the problem is -
I have a page like this
<?php echo $test; ?>
If i visit http://www.mydomain.com/test.php?test=hello
it should print out 'hello'
but it dosnt,
somone has said this had somthing to do with regiser_globals
can anyone advise?
thanks -Arron
Hi,
if register_globals is set to on then use $GET['var'] or $POST['var'] instead of $var.
In your case:
echo $_GET['test'];
Or to make sure that no warnings are shown:
if (isset($_GET['test'])) echo $_GET['test'];
Thomas