View Single Post
  #2 (permalink)  
Old 08-16-2006, 06:11 AM
irodgers irodgers is offline
WebProWorld Pro
 

Join Date: Aug 2003
Location: UK
Posts: 132
irodgers RepRank 0
Default Strip out anything that can be interpreted by php

Strip out anything that can be interpreted by php. I only realised this myself a few days ago. Spammers were using my enquiry form and were putting php scripts into the actual text box. So use -

stripslashes()
strip_tags()
escapeshellcmd()
htmlspecialchars()

Those are php commands by the way.

I think that should do it.
__________________
Markgreat
Homes by Speyside
Tickets!
Reply With Quote