Jump to content

form security


cdoggg94

Recommended Posts

i want to make a form that has a name, subject, email and comment input box... this is all done and working.

 

the thing i am having trouble with is making the comment box not allow links in it.

 

i thought it would be something like:

 

if("comments" == "<a href=''></a>"){

echo "You have Entered the Wrong Information";

}else{

 

Insert Record Code..

 

}

 

the "comments" name is the name of the comment text box.

 

is this anywhere near what it should be ?

Link to comment
https://forums.phpfreaks.com/topic/226981-form-security/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.