quickstopman Posted May 28, 2007 Share Posted May 28, 2007 hey guys im trying to make it when my user updates his profile it turns JS, and PHP statements into useless dots can someone write me and example script thanks guy! Quote Link to comment Share on other sites More sharing options...
StormTheGates Posted May 28, 2007 Share Posted May 28, 2007 Heres something I cooked up: <?php $something = $_POST['quote']; $replace = array("javascript", "html", "body"); $replaced = str_replace($replace, "...", "$something"); echo "$replaced"; ?> Should work fine. Just add array elements to $replace with words you want to be replaced. Quote Link to comment Share on other sites More sharing options...
quickstopman Posted May 28, 2007 Author Share Posted May 28, 2007 thanks! Quote Link to comment Share on other sites More sharing options...
StormTheGates Posted May 28, 2007 Share Posted May 28, 2007 My pleasure. 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.