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 Quote 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 Quote 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 Quote 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? Quote 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() Quote Link to comment https://forums.phpfreaks.com/topic/158618-what-do-you-recommend/#findComment-837851 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.