RE: [PHP] ' as \' in posted form data: how to fix

From: Date: Thu, 19 Oct 2000 03:25:48 +0000
Subject: RE: [PHP] ' as \' in posted form data: how to fix
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21058@lists.php.net to get a copy of this message
stripslashes() See: http://www.php.net/manual/function.stripslashes.php example: <?php $someString = "Isn\'t PHP wonderful?"; $someString = stripslases($someString); print($someString); ?> should give you: Isn't PHP wonderful? marco -----Original Message----- From: Alan Tu [mailto:alantu@alpha-pro.net] Sent: Wednesday, October 18, 2000 8:24 PM To: php-general@lists.php.net Subject: [PHP] ' as \' in posted form data: how to fix Hello, I have a form being submitted to PHP 4 (release candidate 1). The data is text submitted in the post method. However, the ' in the text is represented as \' when I e-mail the text. The data isn't url encoded--spaces are spaces. Seems this is a PHP issue. How do I fix this? Alan

« previous php.general (#21058) next »