RE: [PHP] Newbie help please!

From: Date: Wed, 15 May 2002 14:59:24 +0000
Subject: RE: [PHP] Newbie help please!
Groups: php.general 
Request: Send a blank email to php-general+get-97735@lists.php.net to get a copy of this message
this will do it: <?php $username = $_GET['user']; $password = $_GET['pass']; echo $username; echo $password; ?> Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : rcollins@norta.com -----Original Message----- From: John [mailto:jashbaugh@wcpci.com] Sent: Wednesday, May 15, 2002 9:46 AM To: php-general@lists.php.net 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

« previous php.general (#97735) next »