registe globals was disabled by the php development team for security reasons in php version 4.2. wamp uses php 5.2.x. so, now when you use a script php creates super globals for those values. since you used the form method type of
get in your from, you can access your variable from the super globals array like this:
$_GET['userName']so, change your script to:
<?php
print "<h3>Hi there, " . $_GET['userName'] . "!</h3>";
?>if you had used
form method = "post" instead, then you would need to change your code to this:
<?php
print "<h3>Hi there, " . $_POST['userName'] . "!</h3>";
?>Info on Register Globals
[
www.php.net]
More info on Super Globals
[
www.php.net]
Using Forms
[
www.php.net]
CyberSpatiumWAMP English Forum Admin