Jump to content

How do I sanitize my inputs?


Matt Ridge

Recommended Posts

Different things do different things

 

strip_tags() removes things like <a>, </a>, <javascript> etc anything within tags <>

htmlentities() changes things into their html entity like & changes into &

int() makes sure everthing is a number

mysqli_real_escape_string() is the cats meow and turns every thing into a string

Different things do different things

 

strip_tags() removes things like <a>, </a>, <javascript> etc anything within tags <>

htmlentities() changes things into their html entity like & changes into &

int() makes sure everthing is a number

mysqli_real_escape_string() is the cats meow and turns every thing into a string

 

Disregard this post please.

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.