str_replace

From: Date: Mon, 05 Nov 2001 14:43:48 +0000
Subject: str_replace
Groups: php.general 
Request: Send a blank email to php-general+get-73489@lists.php.net to get a copy of this message
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

« previous php.general (#73489) next »