Tommy, Thanks that was it. "Tommy Claasens - Q Data Kzn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > > Try this > <?php > $username = $_GET['user']; > $password = $_GET['pass']; > echo $username; > echo $password; > ?> > > -----Original Message----- > From: John [mailto:[EMAIL PROTECTED]] > Sent: Wed, 15 May 2002 16:46 > To: [EMAIL PROTECTED] > Subject: [PHP] Newbie help please! > > > 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 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php