No, I don't have my own server. I just want some guidelines that need to keep in mind while coding. Thanks
I'm sure there are online tools to check your code for vulnerabilities. if it's a really important site or if you get a lot of hackers visiting, I suggest you have your own server from home or colocate with a cheap provider.
acunetix is the tool i have recently learned about if you are looking for vulnerabilities detector tool.
use stripslashes($input) and html_entities($input) functions... 2 powerful functions.. and lastly. use str_replace to replace javascript functions just like this: str_ireplace('javascript','java<b></b>script',$input); this will disable all javascript functions.. my 3 cents