יש לי בעיה
יש לי את הקוד הבא:
יש לי את הקוד הבא:
<? /* removing space characters from the edges of the data infos */ $_POST["mail_from"]=trim($_POST["mail_from"]); $_POST["mail_name"]=trim($_POST["mail_name"]); $_POST["mail_subject"]=trim($_POST["mail_subject"]); $mail_ok=true; //we assume the form is set correctly... /* checking that the fields are filled ok */ if ($_POST["mail_from"]=="") { echo "<FONT color=\"#FF0000\">נא למלא את השדה 'אי-מייל של השולח'.</FONT><BR>\n"; $mail_ok=false; } if ($_POST["mail_subject"]=="") { echo "<FONT color=\"#FF0000\">נא למלא את השדה 'נושא'.</FONT><BR>\n"; $mail_ok=false; } if ($_POST["mail_body"]=="") { echo "<FONT color=\"#FF0000\">נא למלא את השדה 'הודעה'.</FONT><BR>\n"; $mail_ok=false; } if ($mail_ok) //if the fields are filled, we attempt to send the mail { $to="[email protected]"; //the E-mail to send the message to $subject=$_POST["mail_subject"]; //the subject of the mail $body=$_POST["mail_body"]."\n\n\n\n\n-----------------------------------------------------------\n נשלח באמצעות סקריפט של אלי חן\n Powered By a PHP script by Eli Hen"; //the body of the mail (a text added to every mail body) $headers="From: ".$_POST["mail_from"]."\r\n"; //the headers of the mail ...
ואני מקבל את ההודעה הבאה:Parse error: parse error, unexpected '@' in /home/a/atuda/public_html/mail_send.inc on line 28
(mail_send.inc הוא הקובץ ממנו לקוח הקוד) השורה עליה הוא מצביע היא השורה בה כתובה כתובת המייל. איך פותרים??? תודה מיכאל