Forum Moderators: coopster
The php on my desktop is as it comes out of the box with Suse linux. All I have to do is start up apache and it works(mostly).
To explain the problem I have two cutdown programs.
Program1
<?php
?>
<a href="two.php?pass=http:"> link <a><br>
Program 2
<?php
$url=$_GET['pass'];
print "two.".$pass."end\n";
?>
When I run them on the server the value of $pass is populated when I run it on the desk top it isn't
What do I need to change on my desktop machine?
On your local machine, register_globals in off, which means you must access globals with their full array name($_GET['pass']).
Actually, you are close to what you need because you already set the variable, $url, properly and it will contain the value you need. You just need to change the next line to use $url, rather than $pass.
$url=$_GET['pass'];
print "two.".$url."end\n";