hno Posted May 18, 2009 Share Posted May 18, 2009 hi what do you do for increase the security when you want to get $_post array element from the users and store the values in the database or print it? For example you want to store $_post['name'] in the database?How do you check it for safe? thanks Link to comment https://forums.phpfreaks.com/topic/158618-what-do-you-recommend/ Share on other sites More sharing options...
RussellReal Posted May 18, 2009 Share Posted May 18, 2009 mysql_real_escape_string() on it, name would be a string Link to comment https://forums.phpfreaks.com/topic/158618-what-do-you-recommend/#findComment-836553 Share on other sites More sharing options...
Mchl Posted May 18, 2009 Share Posted May 18, 2009 Escape it Link to comment https://forums.phpfreaks.com/topic/158618-what-do-you-recommend/#findComment-836558 Share on other sites More sharing options...
hno Posted May 20, 2009 Author Share Posted May 20, 2009 Escape it thanks but how should i escape it? Link to comment https://forums.phpfreaks.com/topic/158618-what-do-you-recommend/#findComment-837850 Share on other sites More sharing options...
Masna Posted May 20, 2009 Share Posted May 20, 2009 Escape it thanks but how should i escape it? mysql_escape_string() Link to comment https://forums.phpfreaks.com/topic/158618-what-do-you-recommend/#findComment-837851 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.