string replace
Posted: Tue Aug 19, 2003 12:22 pm
any one got an idea how i can use javascript onSubmit to replace all bad words in the textarea field?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$good_txt = preg_replace("(bad_word1|bad_word2|bad_word3)i","[censored]",$_POST['textarea_bad_txt']);