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. |
 |
 |
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
|
 |
 |
|