Jump to content

Secure php form


izzy

Recommended Posts

You should use a function called mysql_real_escape_string which will help to prevent SQL Injection attacks when dealling with data that gets sent to a database, such as login forms. Also you should use a function called strip_tags too to stop HTML/javascript from being entered in to your forms too.

Other functions you should use htmlentied / htmlspecialchars, addslashes

You should never use raw data that has been inputted by users.
Link to comment
https://forums.phpfreaks.com/topic/14367-secure-php-form/#findComment-56669
Share on other sites

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.