CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Prevent html in contact forms

Print topic Send  topic

Author Message
westeire

Posts: 20
Posted: 10/17/2007, 11:39 AM

How can I prevent people from putting html in my contact form
Recently I have been receiving junk through my contact form in the form of html
_________________
Give a hungry man a fish and feed him for a day,
Teach him to fish and feed him for life.
View profile  Send private message
datadoit
Posted: 10/17/2007, 11:40 AM

westeire wrote:
> How can I prevent people from putting html in my contact form
> Recently I have been receiving junk through my contact form in the form of html
> ---------------------------------------

Use a Captcha.
mamboBROWN


Posts: 1713
Posted: 10/17/2007, 2:01 PM

westeire
Try using the strip_tags() PHP function. It will strip out all HTML tags unless you specify which ones you wish not to strip out of the string. Here is a link to check it out: http://www.php.net/strip_tags
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.