
06-06-2008, 19:13
|
|
מנהל מולטימדיה
|
|
חבר מתאריך: 07.12.07
הודעות: 1,955
|
|
|
שאלה | שליחת מייל הכולל משתנים מדף הPHP בלחיצה על כפתור
שלום!
יש לי את הסקריפט הבא (w3schools)
קוד:
<?php
$to = " somebody@example.com, somebodyelse@example.com";
$subject = "HTML email";$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";// More headers
$headers .= 'From: <webmaster@example.com>' . "\r\n";
$headers .= 'Cc: myboss@example.com' . "\r\n";mail($to,$subject,$message,$headers);
?>
איך אני יכול לקרוא לפעולות האלה להתבצע רק אחרי שמישהו לוחת על הכפתור מסויים?
נערך לאחרונה ע"י inspired-session בתאריך 06-06-2008 בשעה 19:26.
|