السلام عليكم ورحمة الله وبركاتة
مشكلتي سهلة ولكن لاني جديد في برمجة php لم احصل حل للمشكلة
معلومات عن المشكلة:
انا اريد الصفحة بتاعتي ترسل رسالة الى الايمل بتاعي وبعدين يحول المستخدم الى صفحة جديد , استخدمة الــ header ولكن يضر لي هاي الرسالة
Parse error: syntax error, unexpected T_STRING in /data/members/free/tripod/uk/y/a/h/yahoochatter/htdocs/Mails.php on line 9
هذا كود الصفحة الذي استخدمة
<?php
$to = "technology.creative1@yahoo.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
$headers = "From: technology.creative1@yahoo.com\r\n" .
"X-Mailer: php";
mail($to, $subject, $body, $headers)
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://www.google.com");
exit;
?>المشكلة في الـــ header على ما اعتقد
ممكن مساعدة
in English
i want to send mail to my yahoo account, at first it works good but when i try to redirect the page to another website its shows the error above.
and help would be really appreciated
