You are here: Re: stripslashes « All PHP « IT news, forums, messages
Re: stripslashes

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация