מצאתי אותו באחד האתרים, יש לציין שאני לא מבין ב-PHP.INDEX.HTM
----------------------------------------------
<div dir="ltr">
<form action="form.php" method="post">
<!-- Contact Form By TalGarty -->
<table width="827">
<tr>
<td width="310"> </td>
<td width="381">
<p align="center">
<input type="text" name="name" maxlength="20" dir="rtl" size="20"></td>
<td width="122" align="right" dir="rtl">
<p dir="rtl"><font face="Arial" size="2"><b>שם מלא:</b></font></td>
</tr>
<tr>
<td width="310"> </td>
<td width="381">
<p align="center">
<input type="text" name="email" maxlength="30" dir="rtl" size="20"></td>
<td width="122" align="right" dir="rtl"> <font face="Arial" size="2"><b>
אימל:</b></font></td>
</tr>
<tr>
<td width="310"> </td>
<td width="381">
<p align="center">
<input type="text" name="subject" maxlength="30" dir="rtl" size="20"> </td>
<td width="122" align="right" dir="rtl"> <font face="Arial" size="2"><b>
טלפון:</b></font></td>
</tr>
<tr>
<td width="310"> </td>
<td width="381">
<p align="center">
<textarea rows="2" name="content" cols="15" maxlength="120" dir="ltr"></td>
<td width="122" align="right" dir="rtl"> <font face="Arial" size="2"><b>
הערה:</b></font></td>
</tr>
</table>
<p align="center"></br>
<input type="submit" name="posted" value="שלח"></p>
</form>
</div>
form.php
----------------------------------------------
<?php
include ("config.php");
// Contact Form By TalGarty
$mail_check=true;
if(trim($_POST)=="")
$mail_check=false;
if(trim($_POST)=="")
$mail_check=false;
if(trim($_POST)=="")
$mail_check=false;
if(trim($_POST)=="")
// $mail_check=false;
if($mail_check){
$to=$config;
$subject = $_POST;
$message = '<html><head><title>$lang</title></head><body>
<b>'.$lang.': '.$_POST.'</b></br></br>'.$_POST.'
</br></br></br>-----------</br>
<b>'.$lang.':</b></br>
'.$lang.': '.$_POST.'</br>
'.$lang.': '.$_POST.'</br>
</body></html>';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=windows-1255' . "\r\n";
$headers .= 'From: '.$_POST.' <'.$_POST.'>' . "\r\n";
if(mail($to, $subject, $message, $headers)){
echo $lang;
}
else{
echo $lang;
}
}else{
echo $lang;
}
?>
config.php
----------------------------------------------
<?php
// Contact Form By TalGarty
$config = Array(
"email" => "[email protected]",
);
$lang = Array(
"newemailarriveed" => "New Email has arriveed",
"newemailfrom" => "New Email from",
"info" => "Information",
"fullname" => "Full Name",
"iemail" => "Email",
"success" => "Mail Send successfuly",
"eror1" => "Eror: The Email did not send.",
"eror2" => "Eror: One or more fields was empty.",
);
?>