<html>
<form action="send.php" method="post"><center>
Name: <input type="text" name="name"><br>
Email : <input type="text" name="email"><br>
Subject : <input type="text" name="subject"><br>
Comments : <textarea name="comments" rows=5></textarea><br><br>
<input type="submit" value="Send>">
<center></form>
</html>
<?
$name=$_POST['name'];
$email=$_POST['email'];
$comments=$_POST['comments'];
$to="[email protected]";
$message="$name just filled in your comments form. They said:\n$comments\n\nTheir e-mail address was: $email";
if(mail($to,$subject,$message,"From: $email\n")) {
echo "Thanks for your comments.";
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>
دقيقا...hba گفت:نياز به كد نيست يه form ميزاري با چيز هايي كه مي خواهي توش بد پراپرتيز كل form كه ساختي را مي گيري و save resault را در پراپرتيز به ميل مي دي
همين :!:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
</head>
<body>
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" S-Label-Fields="TRUE" S-Email-Address="[email protected]" S-Email-Format="TEXT/PRE" --><p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</form>
</body>
</html>