RE: [PHP] Newbie help please!

From: Date: Wed, 15 May 2002 15:04:37 +0000
Subject: RE: [PHP] Newbie help please!
Groups: php.general 
Request: Send a blank email to php-general+get-97738@lists.php.net to get a copy of this message
or this <?php echo $user; echo $pass; ?> -----Original Message----- From: Tommy Claasens - Q Data KZN [mailto:TommyC@ComparexAfrica.co.za] Sent: 15 May 2002 15:57 To: John; php-general@lists.php.net Subject: RE: [PHP] Newbie help please! Hi, Try this <?php $username = $_GET['user']; $password = $_GET['pass']; echo $username; echo $password; ?> -----Original Message----- From: John [mailto:jashbaugh@wcpci.com] Sent: Wed, 15 May 2002 16:46 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#97738) next »