RE: [PHP] Newbie help please!
| From: | Jay Blanchard | Date: | Wed, 15 May 2002 15:01:14 +0000 |
| Subject: | RE: [PHP] Newbie help please! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97734@lists.php.net to get a copy of this message | ||
[snip]
test.html code------------
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
<a href="test.php?user=admin&pass=123456">Click here</a>
</html>
test.php code------------
<?php
$username = user;
$password = pass;
echo $username;
echo $password;
?>
[/snip]
$user will be 'admin'
$pass will be '123456'
You made an attempt to change the variable names, so you should have done
this;
<?php
$username = $user; //note the variable designation
$password = $pass; //note the variable designation
echo $username;
echo $password;
?>
HTH!
Jay