note 1487 deleted from ereg_replace by philip
| From: | philip@php.net | Date: | Mon, 27 Aug 2001 12:40:35 +0000 |
| Subject: | note 1487 deleted from ereg_replace by philip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17197@lists.php.net to get a copy of this message | ||
I've noticed that using a form to submit a string of text to a php script and then just pulling
the information out using the form item name (ie, $comments) seems to escape " and '
characters so these characters get put into your information.
I've use the
<PRE>ereg_replace("\\", " ", $comments);</PRE>
reg ex, albeit simple, to get around this problem. Im not sure if this is a "feature" of
how PHP unencodes a string submitted via GET or not, but at least I can get around it.