25-09-2009, 12:32
|
|
|
חבר מתאריך: 23.09.07
הודעות: 108
|
|
אם אתה יודע טיפה טיפה PHP, אז כל מה שאתה צריך לעשות זה לשנות את הקוד הזה שהוא למעשה מוכן ויש בו גם לולאה שמאפשרת לך לשלוח למספר נמענים:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>הבריאה</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body bgcolor="#FFFFFF">
<center>
<?php
$secs = "3";
if($_POST["posted"])
{
if($_POST["fullname"] && $_POST["phone1"])
{
$name = $_POST["fullname"];
$from_email = $_POST["ueMail"];
$subject = "-פנייה מהמודעה-שיטת הבריאה";
$phonenumber = $_POST["phone1"];
$text = "";
$head = "Content-type: text/HTML; charest=UTF-8";
$head .= "From: $name <$from_email>";
$to[] = "roycegraciie@gmail.com";
$to[] = "steev.ostin2@gmail.com";
$to[] = "roycegrace@walla.co.il";
$text = "
<div align='center' dir='rtl'>
<table width='600' border='1' cellpadding='0' cellspacing='0' style='border-collapse:collapse; border:none;mso-border-alt:solid windowtext .5pt;mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-table-dir:rtl'>
<tr>
<td align='right' dir='rtl' style='border:solid windowtext .5pt #B3B3B3; padding: 3px;'><font face='arial' color='#880000' size='2'><b><u>שם:</u></b></font></td>
<td align='right' dir='rtl' style='border:solid windowtext .5pt #B3B3B3; padding: 3px;'><font color='#002E52' face='arial'><b>$name</b></font></td>
</tr>
<tr>
<td align='right' dir='rtl' style='border:solid windowtext .5pt #B3B3B3; padding: 3px;'><font face='arial' color='#880000' size='2'><b><u>טלפון:</u></b></font></td>
<td align='right' dir='rtl' style='border:solid windowtext .5pt #B3B3B3; padding: 3px;'><font color='#002E52' face='arial'><b>$phonenumber</b></font></td>
</tr>
<tr>
<td align='right' dir='rtl' style='border:solid windowtext .5pt #B3B3B3; padding: 3px;'><font face='arial' color='#880000' size='2'><b><u>דואר אלקטרוני:</u></b></font></td>
<td align='right' dir='rtl' style='border:solid windowtext .5pt #B3B3B3; padding: 3px;'><font color='#002E52' face='arial'><b>$from_email</b></font></td>
</tr>
<tr>
<td align='right' valign='top' dir='rtl' style='border:solid windowtext .5pt #B3B3B3; padding: 3px;' colspan='2'><hr width='100%' height='1' color='#FF9C00'>
<font face='arial' color='#002E52' size='3'><b>".$text."</b></font>
</td>
</tr>
<br /><br />
</b></font>
</table>
</div>
";
foreach($to as $address){
mail($address,$subject,$text,$head);}
?>
<div style="color: #FE8D00;font-size: 20px;font-family: Arial;" align="center" dir="rtl" lang="he">
<meta http-equiv="refresh" content="<?=$secs;?>;URL=habriah.php">
<BR>
<b>
תודה רבה! פנייתך התקבלה...נחזור אליך בהקדם האפשרי.
</b>
</div>
<?php
die();
}
else
{
die("<div style='color: red;font-size: 20px;font-family: Arial;' align='center' dir='rtl' lang='he'><BR><b> מצטערים, אך עליך למלא את הערכים: שם, טלפון <u></u></b><br /> לחץ <a href='habriah.php'>כאן</a> לחזרה לטופס</div>");
}
}
?>
<center>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<body bgcolor="#000000">
<center>
<img src="habriah.jpg">
</td>
<td style="background-image: url('img_04.gif');" width="14" height="739"></td>
</tr>
<tr>
<td colspan="3" style="background-image: url('img_05.gif');" width="781" height="56">
<form action="" name="eMailseNd" method="post" onsubmit="return check();" style="margin: 0;">
<input type="hidden" name="posted" value="1" />
<table style="margin: 0;" border="0" cellpadding="5" cellspacing="3" dir="rtl">
<tr>
<td align="right" style="color : #214173;font-size : 22px;font-family : Arial;font-weight : Bold;text-decoration : none;" dir="rtl" lang="he">שם:</td>
<td align="right" style="padding: 0px;"><input dir="rtl" type="text" name="fullname" maxlength="22" style="width: 140px;height: 19px;background-image: url('images/input.jpg');color: #000000;border: 1px solid #B4B4B4;font-size: 14px;font-family: Arial;font-weight: Bold;" /></td>
<td align="right" style="color : #214173;font-size : 22px;font-family : Arial;font-weight : Bold;text-decoration : none;" dir="rtl" lang="he">טלפון:</td>
<td align="right" style="padding: 0px;">
<input dir="ltr" type="text" name="phone1" maxlength="35" style="width: 140px;height: 19px;background-image: url('images/input.jpg');color: #000000;border: 1px solid #B4B4B4;font-size: 14px;font-family: Arial;font-weight: Bold;" /></td>
<td align="right" style="color : #214173;font-size : 22px;font-family : Arial;font-weight : Bold;text-decoration : none;" dir="rtl" lang="he">דוא"ל:</td>
<td align="right" style="padding: 0px;"><input type="text" dir="ltr" name="ueMail" maxlength="30" style="width: 140px;height: 19px;background-image: url('images/input.jpg');color: #000000;border: 1px solid #B4B4B4;font-size: 14px;font-family: Arial;font-weight: Bold;" /></td>
<td align="right" style="color : #214173;font-size : 22px;font-family : Arial;font-weight : Bold;text-decoration : none;" dir="rtl" lang="he"></td>
<td align="center">
<input type="submit" name="send" value="שלח" style="width: 66px;height: 22px;background-color: #003F6A;color: #FFAD1D;border: 0px;font-size: 14px;font-family: Arial;font-weight: Bold;text-decoration: sharp;" />
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</center>
</body>
</html>
|