Stripping single quotes
| From: | Matt Stone | Date: | Sat, 28 Jul 2001 03:58:41 +0000 |
| Subject: | Stripping single quotes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-60025@lists.php.net to get a copy of this message | ||
Hi all,
I am trying to validate some email addresses before they are entered into
the database.
The problem is, some thick or malicious people are entering single quotes
into their email addresses.
I need to strip out all these single quotes but a little ole' str_replace
doesn't seem to be working.
Here it is:
$fldemail == str_replace("'","",$fldemail);
Nice and basic :)
Can anyone please enlighten me on this?
Thanks in advance,
Matt Stone