Re: Pulling variables from a URL

From: Date: Tue, 14 Oct 2003 17:22:16 +0000
Subject: Re: Pulling variables from a URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166093@lists.php.net to get a copy of this message
It should be: echo $_GET['username']; You shouldn't have the dollar sign in the brackets. $ represents a variable the entire $_GET['username'] is the variable. --- Frank Tudor <frank_tudor@yahoo.com> wrote: > I have a URL including variables... It looks like > this: > > http://registration.php?username=111111&email=test@test.com > > But I can't pullit into the next page's form > > Here is what is in the form and other things I have > tried: > > $username = $_HTTP_POST_VARS['username']; > > echo $_GET['$username']; > > echo $_POST['$username']; > > This page sumbits with PHP_SELF if that helps with > this puzzle. > > Can someone tell me what I'm doing wrong? > > Also I do have an include file that looks for > session > information but Ihave disabled it to see if I can > pass > variables. > > Frank > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product > search > http://shopping.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com

« previous php.general (#166093) next »