Re: Newbie help please!
| From: | John | Date: | Wed, 15 May 2002 15:08:57 +0000 |
| Subject: | Re: Newbie help please! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97739@lists.php.net to get a copy of this message | ||
Tommy,
Thanks that was it.
"Tommy Claasens - Q Data Kzn" <TommyC@ComparexAfrica.co.za> wrote in message
news:5192C567A6FDD2119E1C0008C71E43D403AD9487@exchdbs01.pqafrica.co.za...
> 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