Jump to content

Archived

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

Tandem

No html or Js...

Recommended Posts

Whats the best way to make html or javascript not work on a user input page like a guestbook?

Share this post


Link to post
Share on other sites
Use mysql_real_escape_string or strip_tags to stop HTML beeing added. Also make sure you are validating user input too! Dont  just use raw POST data! Always validate user data!

Share this post


Link to post
Share on other sites
You can also use htmlentities() which causes to tags to be displayed, not interpreted.

Ken

Share this post


Link to post
Share on other sites

×

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.