On 14 October 2003 18:59, Carl Furst contributed these pearls of wisdom:
> double quotes say "interpolate $variables". However I have
> discovered (at
> least in php 4.2.3) that you cannot use subarrays in double
> quotes like "my
> var in the subarray subarray: $array['subarray']['subarray']"
> T
--- Comex <[EMAIL PROTECTED]> wrote:
> $_GET[$username]???
> http://whatever.com/whatever.php?username=blah&blah=value???
Is this a question? If so, the answer is no. :-)
Chris
=
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
<[EMAIL PROTECTED]>
Daniel Guerrier:
> Who keeps telling people to use :)
> $_GET[$username]
$_GET[$username]???
http://whatever.com/whatever.php?username=blah&blah=value???
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Who keeps telling people to use :)
$_GET[$username]
it should be $_GET['username']
$_GET is a key value pair array.
the key is the name of the html form variable in this
case username and the value is the value entered in
the form.
--- Adrian <[EMAIL PROTECTED]> wrote:
> lol variables in quotes
lol variables in quotes - especialli when there is only the variable
are really ugly.
you should use $_GET[$username]...
> Use double quotes:
> $_GET["$username"];
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
iginal Message-
From: Frank Tudor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2003 1:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Pulling variables from a URL
I have a URL including variables... It looks like this:
http://registration.php?username=11&[EMAIL PROTECTED]
--- Frank Tudor <[EMAIL PROTECTED]> wrote:
> I have a URL including variables... It looks like this:
>
> http://registration.php?username=11&[EMAIL PROTECTED]
>
> 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 = $_H
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 <[EMAIL PROTECTED]> wrote:
> I have a URL including variables... It looks like
> this:
>
>
http://registration.php?use
I have a URL including variables... It looks like this:
http://registration.php?username=11&[EMAIL PROTECTED]
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 $_
9 matches
Mail list logo