Hi,
I have just installed php 4.3.3 with apache 1.3.7
everthing seem to work ok but one strange thing.
the get or post method.
file t1.php:
<?
$var="hello";
echo "<a href='t2.php?var=$var'>to t2</a>";
?>
file t2.php:
<?
echo "var=$var";
?>
the result is: var=
variable is empty though I see in the url : t1.php?var=hello
howcome???
maybe it's something to do with my installation?
thanks
get method doesn't work....
Moderator: General Moderators
Make sure and read the stickies first.....this should help.
viewtopic.php?t=511
PHP by default sets register_globals to off.
viewtopic.php?t=511
PHP by default sets register_globals to off.
Yup, read that thread.
REGISTER_GLOBALS is off by default.
and it will now work
Mark
REGISTER_GLOBALS is off by default.
Code: Select all
<?
echo "var=".$_GET['var'];
?>Mark