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? Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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.