RE: [PHP] $_POST index issues

From: Date: Mon, 10 Feb 2003 16:08:34 +0000
Subject: RE: [PHP] $_POST index issues
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135083@lists.php.net to get a copy of this message
This indeed was the problem. Case closed. Thanks for the help. James G Puckett ECG, Inc. > -----Original Message----- > From: Ernest E Vogelsinger [mailto:ernest@vogelsinger.at] > Sent: Monday, February 10, 2003 10:55 AM > To: James G Puckett > Cc: php-general@lists.php.net > Subject: Re: [PHP] $_POST index issues > > At 16:47 10.02.2003, James G Puckett spoke out and said: > --------------------[snip]-------------------- > > echo "<!-- username_given ==> $_POST['username_given'] > > -->\n"; > > $query = "select username, active, password, clec_id from users > >where USERNAME=\"$_POST['username_given']\""; > --------------------[snip]-------------------- > > I'm not sure if this is the source of your problems, but when referencing > an array from within a string you should put it in curly quotes: > > echo "<!-- username_given ==> {$_POST['username_given']} -->\n"; > $query = "select username, active, password, clec_id from users > where USERNAME=\"{$_POST['username_given']}\""; > > > -- > >O Ernest E. Vogelsinger > (\) ICQ #13394035 > ^ http://www.vogelsinger.at/

« previous php.general (#135083) next »