mysql_query("INSERT INTO review(`carid`,`reviewer`,`site`,`review`)VALUES('$_POST[id]','$_POST[reviewer]','$_POST[site]','$rev')") or die(mysql_error()); Code (markup): How would I write the PHP to delete out any links that someone tires to add to a review that they post? This is the insert string I'm using. The parameter is $rev I would imagine it will be a "replace" function where I look for anything that looks like a link and replace it with a space. As an alternative can I look for a link, if someone adds one then I can assume they are a spammer and abort the insert. Also, how would you add rel="nofollow" to the link in the "site" parameter, first checking to be sure a link is added. Thanks