RE: [PHP] Regular Expressions?
| From: | Chris W. Parker | Date: | Fri, 08 Apr 2005 23:55:05 +0000 |
| Subject: | RE: [PHP] Regular Expressions? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-212685@lists.php.net to get a copy of this message | ||
list_php_general@controlaircorp.com
<mailto:list_php_general@controlaircorp.com>
on Friday, April 08, 2005 4:08 PM said:
> Ok that would solve my SQL statements from breaking but how about in
> the submitted form data at submit time?
Do you mean you're having this problem?
<input type="text" name=".." value="She said "Hi!"" />
?
If so, do htmlentities() to the data being displayed. That will turn the
" into " which will not get the form confused.
Chris.