תשנה את השורה הרביעית ל
PHP קוד:
echo "Hello, ".$text;
מה שאני עשיתי
PHP קוד:
<?php
if(isset($_POST['text']))
{
$spam = array("זבל", "בן");
$text = str_replace($spam,"****",$_POST['text']);
echo $text;
}
else
{
echo "
<form action=\"form.php\" method=\"post\">
<textarea name=\"text\" rows=\"10\" cols=\"30\"></textarea>
<input type=\"submit\" name=\"send\" value=\"send\" />
</form>
";
}
?>