|
Posted by J.O. Aho on 06/18/05 20:40
J. W. Doe wrote:
> On my website, I am using a PHP contact form that I found somewhere on
> the web many years ago. I didn't write it myself, and I know very little
> about PHP.
>
> The form works great, except that slashes for escaping single and double
> quotes are not being stripped out . I did some Googling and found that
> the "stripslashes" function needs to be used, but when I check the
> script, it looks like it's already using stripslashes. At this point I'm
> stumped. I'd love it if someone could take a look at the script and let
> me know why slashes aren't being stripped out.
You could use eregi_replace() to remove things you don't want to have in your
text. http://www.php.net/manual/en/function.eregi-replace.php
At least when I have a form, I don't use stripslashes() or any other way to
remove slashes, as when normally writing something in a form you don't add
slashes.
//Aho
[Back to original message]
|