Re: str_replace
| From: | David Robley | Date: | Mon, 05 Nov 2001 23:55:26 +0000 |
| Subject: | Re: str_replace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73525@lists.php.net to get a copy of this message | ||
On Tue, 6 Nov 2001 01:13, Jaime Iniesta Aleman wrote:
> Hi, I've got a form that lets users introduce comments on a page. The
> problem is that when they type the ' character, it is converted to \' .
> How can I avoid this? I'm trying to replace it but it doesn't work. For
> instance:
>
> $body=str_replace("'","´",$body);
> $comment = "<b>$subject</b><br>$body<br><i>(sent by $name on
> $date
> GMT)</i><br><br>";
>
> Can someone help?
>
> Jaime Iniesta Alemán - IT Specialist
> IBM Global Services
> Tel. 34-91-3977450 - e-mail: jaimeiniesta@es.ibm.com
>
Stripslashes() Also look into the magic_quotes settings in your php.ini.
THere is more information about this in the Configuration section of the
documents.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Where is Carmen, San Diego?