Re: Why won't my echo won't work? [newbie question]

From: Date: Sun, 29 Aug 2004 16:54:50 +0000
Subject: Re: Why won't my echo won't work? [newbie question]
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195085@lists.php.net to get a copy of this message
John Nichel wrote:
Bestman4unowwa@aol.com wrote:
The first two of these 3 echo statements work. But my last echo doesn't. 'username' is the name of the element I want to echo. To the right of each is what I see echoed. echo $_SERVER['REQUEST_METHOD']; echos -> POST
echo $_POST;                      echos -> Array
echo $_POST['username'];          echos -> nothing
How are you setting $_POST['username']? Let's see the code for the form.
Members in $_POST array are set (mostly) by submitting a form with POST method, make sure your form is not submitting by GET.

« previous php.general (#195085) next »