Orionsbelter Posted July 23, 2008 Share Posted July 23, 2008 strip_tags(); what do they do? Because i've used them with a mysql_real_string_escape(); so could this be useless if its taking away slashes? Link to comment https://forums.phpfreaks.com/topic/116169-strip_tags/ Share on other sites More sharing options...
unkwntech Posted July 23, 2008 Share Posted July 23, 2008 For information on any function in the standard php libraries you can goto http://php.net/FunctionName In this case http://php.net/strip_tags. From http://php.net/strip_tags string strip_tags ( string $str [, string $allowable_tags ] ) This function tries to return a string with all HTML and PHP tags stripped from a given str . It uses the same tag stripping state machine as the fgetss() function. Link to comment https://forums.phpfreaks.com/topic/116169-strip_tags/#findComment-597385 Share on other sites More sharing options...
Orionsbelter Posted July 23, 2008 Author Share Posted July 23, 2008 so this could stop the mysql_real_escape_string(); working? becuase am using mysql_real_escape_string(strip_tags($_POST['username'])); so could this stop the mysql_real_escape_string function? Link to comment https://forums.phpfreaks.com/topic/116169-strip_tags/#findComment-597387 Share on other sites More sharing options...
unkwntech Posted July 23, 2008 Share Posted July 23, 2008 Only use mysql_real_escape_string If you use both the string will be escaped twice Link to comment https://forums.phpfreaks.com/topic/116169-strip_tags/#findComment-597392 Share on other sites More sharing options...
Orionsbelter Posted July 23, 2008 Author Share Posted July 23, 2008 oh so strip tags will also add slashes? Link to comment https://forums.phpfreaks.com/topic/116169-strip_tags/#findComment-597393 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.