php-general | 2001062
Date: 06/27/01
- Next message: Aral Balkan: "Re: [PHP] Filtering out \ when a ' is user entered?"
- Previous message: Christian Dechery: "Re: [PHP] $REMOTE_ADDR error"
- In reply to: Jamie Thompson: "RE: [PHP] Filtering out \ when a ' is user entered?"
- Next in thread: dempsejn <email protected>: "Re: [PHP] Filtering out \ when a ' is user entered?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jamie Thompson wrote:
> use the str_replace() function
> http://www.php.net/manual/en/function.str-replace.php
No. Use stripslashes.
http://php.net/stripslashes
regards
Wagner
> -----Original Message-----
> From: Marcus James Christian [mailto:marcus <email protected>]
> Sent: 27 June 2001 05:19
> To: php-general <email protected>
> Subject: [PHP] Filtering out \ when a ' is user entered?
>
>
> Hello,
>
> I'm pretty new to PHP but all I've seen of it so far I pretty much
> love!
>
> I've built a web log but when the user enters their data and they use
> ' or " (and you know they will) php always shows it from the
> included web log as
>
> \' How can I filter out these backslashes so they don't appear on
> the final public viewable page?
>
> Thanks,
> Marcus
>
> --
> Marcus James Christian - UNLIMITED -
> Multimedia Internet Design
> http://mjchristianunlimited.com
-- Madness takes its toll. Please have exact change.-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Aral Balkan: "Re: [PHP] Filtering out \ when a ' is user entered?"
- Previous message: Christian Dechery: "Re: [PHP] $REMOTE_ADDR error"
- In reply to: Jamie Thompson: "RE: [PHP] Filtering out \ when a ' is user entered?"
- Next in thread: dempsejn <email protected>: "Re: [PHP] Filtering out \ when a ' is user entered?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

