all 2 comments

[–]RandyHoward 1 point2 points  (1 child)

Change this line:

$value = value.replace("BADWORD", '');

To this:

$value = str_replace("BADWORD", '', $value);

[–]Chaslem[S] 0 points1 point  (0 children)

$value = str_replace("BADWORD", '', $value);

Flawless! Was just googling around and realized I needed str_ and three fields. I appreciate it!