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
If you are using the variable $username as a variable variable type thing..
like you don't know what username is going to be each time...
Use double quotes:
$_GET["$username"];
that will make PHP interpolate the variable and use whatever value $username
is as the name of the $_GET var. Single qu
--- 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
8 matches
Mail list logo