You may want to use stripslashes($name) in there instead of just $name.


At 09:18 PM 6/30/01 -0700, Ken Sommers wrote:
>IF i add my name as Carol O'Conner in a form and Echo (PHP 4.06 on win 95)
it back I see 
>Carol O\'Conner 
  ... snip ...
>I am already using:
> <?php echo(htmlspecialchars ($name, ENT_QUOTES)); ?>
>Thanks for the help,

PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to