<?php if(isset($_POST['username'])) { $spam = array("כלב", "זבל"); $text = str_replace($spam,"צונזר",$_POST['username']); echo "Hello, ".$text; } else { echo " <form action=\"form.php\" method=\"post\"> <textarea name=\"username\" rows=\"10\" cols=\"30\"></textarea> <input type=\"submit\" name=\"send\" value=\"send\" /> </form> "; } ?>