You are here: Re: validation « PHP Programming Language « IT news, forums, messages
Re: validation

Posted by Lammi on 09/11/07 11:32

you're not really into php, right?

for a basic validation you may use strip_tags and stripslashes and
htmlentities with all your datafields, f. e.

$name = strip_tags($_POST['name']);
$name = stripslashes($name);
$name = htmlentities($name, ENT_QUOTES);

that's usualy smart enough to prevent malicious code in the email
you'll get. if you wanna store the data in a database, a little more
work must be done. but as far as i remember, you're only looking for a
email-solution.

lorenz

 

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

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