Newbie help please!
| From: | John | Date: | Wed, 15 May 2002 14:46:05 +0000 |
| Subject: | Newbie help please! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-97732@lists.php.net to get a copy of this message | ||
Hello,
I am about 3 hrs old with php and have a very simple question. I
have a test.html page that is just an href and I want to put the variables
into php variables on the next page but I get an error. Could someone please
correct my code or tell me what is wrong. We use IIS NT 4.0 MySQL. We have
installed PHPBB and it works great! Thanks in advance for your time.
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;
?>
error messages-----------
Notice: Use of undefined constant user - assumed 'user' in
\\SERVER\web\phpBB2\test.php on line 3
Notice: Use of undefined constant pass - assumed 'pass' in
\\SERVER\web\phpBB2\test.php on line 4
userpass