Re: Session variables does not get sent
| From: | Jason Wong | Date: | Mon, 06 Sep 2004 08:34:44 +0000 |
| Subject: | Re: Session variables does not get sent | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195967@lists.php.net to get a copy of this message | ||
On Monday 06 September 2004 14:08, Peter Brodersen wrote:
> On Mon, 6 Sep 2004 13:33:02 +0800, in php.general
>
> php-general@gremlins.biz (Jason Wong) wrote:
> >> $username = trim(addslashes($_POST['user_name']));
> >> $pass = trim(addslashes($_POST['password']));
> >
> >addslashes() is not needed as you're performing SELECT query and not an
> > INSERT query.
>
> How did you come up with that? The escape mechanism is the same for
> SELECT and INSERT.
Sorry, you're right. I'll go back to sleep now!
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
A beautiful woman is a blessing from Heaven, but a good cigar is a smoke.
-- Kipling
*/