ציטוט:
נכתב במקור על ידי Ori The Man
הוספתי לך if קטן שבודק אם המייל באמת נשלח
PHP קוד:
<?php
header('Content-Type: text/html; charset=utf-8');
$to = "xxxx@gmail.com"; // this is your Email address
// $first_name = $_POST['///'];
// $last_name = $_POST['///'];
$quantity=$_POST['quantity'];
$makat=$_POST['//'];
$productname=$_POST['productname'];
$subject = "הזמנה חדשה התקבלה";
$message = "שם מוצר: \\\\\\";
$sent = mail($to,$subject,$message);
if($sent) {
header("Location: yourlocation.php");
}
?>
|
זה עובד , תודה!
יש לי שאלה , כשלא היה את ה IF וניסיתי להשתמש ב header , זה נתן שגיאה שלא ניתן להשתמש ב header פעמיים.. איך זה שעכשיו זה נתן ?
תודה!!