תודה על חלק מהקוד חחח עשיתי לך הכל :X
יש לו בעיה הוא כתב גם באינפוטים במקום value הוא כתב vaule
הכל גם ב TEXTAREA הקוד נתתי לך אותו מוכן והכל שלם ועבד !
רק הייתה בעיה אחת דביקשתי ממך באייסיקיו לא להציף אבל המשיך אז נאלצתי לאגנר הלכתי שניה לשניה ! הוא שלח 35 הודעות באלוהים !
בכל מקרה הקוד שעשיתי לו
PHP קוד:
<html dir="rtl">
<head>
<title> הזמנת עיצוב </title>
<style type="text/css">
.links {color: #4d4d4d; font-size: 12px; font-weight:bold;font-family:arial; text-decoration: none; }
.links:Hover {color: #e1e1e1; font-size: 12px; font-weight: bold;font-family:arial; text-decoration: none; }
.text {color: #4d4d4d; font-size: 12px; font-weight: bold;font-family:arial; text-decoration: none; }
.text2 {color: #000000; font-size: 13px; font-weight: bold;font-family:arial; text-decoration: none; }
</style>
</head>
<body bgcolor="#ffffff">
<?php
if($Mode == 'Send')
{
if(empty($_POST['name']) || empty($_POST['mail']) || empty($_POST['yp']))
{
echo "
<form action='?Mode=Send' method='post'><p align='center'><font class='text2'>שמך המלא:</font>
<input name='name' value='".$_POST['name']."' style='width:200px;' class='text'><br>
<br>
<font class='text2'>האימייל שלך:</font>
<input name='mail' value='".$_POST['mail']."' style='width:200px;' class='text'>
<br>
<br>
<font class='text2'>בקשה לעיצוב:</font>
<textarea name='yp' style='width:200px;' class='text'>".$_POST['yp']."</textarea>
<br>
<br>
<input type='submit' name='submit' value='שלח' class='text2'>
</from> ";
}
else
{
echo "
<center>
ההודעה נשלחה בהצלחה
</center>
";
$name = $_POST['name'];
$mail = $_POST['mail'];
$yp = $_POST['yp'];
//add From: header
$header = $_SERVER["SERVER_NAME"];
$headers = "From: Admin@$header\r\n";
$NewAdminMail = "tnt007@013.net";
//specify MIME version 1.0
$headers .= "MIME-Version: 1.0\r\n";
//unique boundary
$boundary = uniqid("HTMLKuchi.be");
//tell e-mail client this e-mail contains//alternate versions
$headers .= "Content-Type: multipart/alternative" .
"; boundary = $boundary\r\n\r\n";
//HTML version of message
$headers .= "--$boundary\r\n" .
"Content-Type: text/html; charset=WINDOWS-1255\r\n" .
"Content-Transfer-Encoding: base64\r\n\r\n";
$text = "
<html dir='rtl'>
<head>
<title> הזמנת עיצוב </title>
<style type='text/css'>
.links {color: #4d4d4d; font-size: 12px; font-weight:bold;font-family:arial; text-decoration: none; }
.links:Hover {color: #e1e1e1; font-size: 12px; font-weight: bold;font-family:arial; text-decoration: none; }
.text {color: #4d4d4d; font-size: 12px; font-weight: bold;font-family:arial; text-decoration: none; }
.text2 {color: #000000; font-size: 13px; font-weight: bold;font-family:arial; text-decoration: none; }
</style>
</head>
<body bgcolor='#ffffff'>
שם השולח : $name
<br>
אימייל השולח : $mail
<br>
בקשת העיצוב : $yp
";
$headers .= chunk_split(base64_encode($text));
//send message
mail($NewAdminMail, "הזמנת עיצוב", "", $headers);
}
}
else
{
echo "
<form action='?Mode=Send' method='post'><p align='center'><font class='text2'>שמך המלא:</font>
<input name='name' value='' style='width:200px;' class='text'><br>
<br>
<font class='text2'>האימייל שלך:</font>
<input name='mail' value='' style='width:200px;' class='text'>
<br>
<br>
<font class='text2'>בקשה לעיצוב:</font>
<textarea name='yp' style='width:200px;' class='text'></textarea>
<br>
<br>
<input type='submit' name='submit' value='שלח' class='text2'>
</from> ";
}
?>
הקוד שלו היה
PHP קוד:
<html dir="rtl">
<head>
<title> הזמנת עיצוב </title>
<style type="text/css">
.links {color: #4d4d4d; font-size: 12px; font-weight:bold;font-family:arial; text-decoration: none; }
.links:Hover {color: #e1e1e1; font-size: 12px; font-weight: bold;font-family:arial; text-decoration: none; }
.text {color: #4d4d4d; font-size: 12px; font-weight: bold;font-family:arial; text-decoration: none; }
.text2 {color: #000000; font-size: 13px; font-weight: bold;font-family:arial; text-decoration: none; }
</style>
</head>
<body bgcolor="#ffffff">
<from action="?Go=Send" method="post"><p align="center"><font class="text2">שמך המלא:</font>
<input type="text" name="yname" vaule="" style="width:200px;" class="text"><br>
<br><font class="text2">האימייל שלך:</font>
<input type="text" name="yemail" vaule="" style="width:200px;" class="text"> <br><br>
<font class="text2">בקשה לעיצוב:</font>
<textarea type="text" name="yp" vaule="" style="width:200px;" class="text"></textarea>
<br><br><input type="submit" name="send_b" vuale="שלח" class="text2">
</from>
<?php
$to = "djgs@djgs.webix.co.il,djgs@walla.com";
$body = $_POST['yp'] && $_POST['yname'] && $_POST['yemail'];
$from = "from : my site";
$subject = "יש לך הודעה חדשה";
if($_POST['sned_b']==posted) {
if ($_POST['yname'] == "" || $_POST['yemail']=="" || $_POST['yp']=="" ) {
echo "יש פרטים שלא מלאו";
} else {
mail($to,$subject,$body,$from) ?>