
 نوشته اصلی توسط 
H03!N
					
				 
				5 تومن حاضرم بدم ولی بیشتر نه
			
		 
	 
 عزيز بيا اينم فرمي كه دادي , كد پي اچ پي گذاشتم داخلش.
5 تومن هم بزار جيب خودت
توضيح :
در سطر 7 ايميل خودتان بزاريد.
	کد PHP:
	
<?php
session_start();
if(isset($_POST['submit'])) {
    if(!empty($_POST['name']) && !empty($_POST['email']) && !empty($_POST['username']) && !empty($_POST['service']) && !empty($_POST['mobail']) && !empty($_POST['subject']) && !empty($_POST['amount']) && !empty($_POST['bank']) && !empty($_POST['fish']) && !empty($_POST['onvan']) && !empty($_POST['message'])) {
            // send email
            $accept = "پیغام شما با موفقیت ارسال شد. با تشکر";
            $to = "test@yahoo.com";
            $name = $_POST['name'];
            $from = $_POST['email'];
            $username = $_POST['username'];
            $service = $_POST['service'];
            $mobail = $_POST['mobail'];
            $subject = $_POST['subject'];
            $amount = $_POST['amount'];
            $bank = $_POST['bank'];
            $fish = $_POST['fish'];
            $onvan = $_POST['onvan'];
            $user_message = $_POST['message'];
    $body = "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">نام و نام خانوادگي : $name</font></div><br>".
            "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">يوزر نيم خريداري شده : $username</font></div><br>".
            "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">سرويس شما : $subject</font></div><br>".
            "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">ایمیل: $from</font></div><br>".
            "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">شماره تماس : $mobail</font></div><br>".
            "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">ميزان اشتراک : $service</font></div><br>".
            "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">مبلغ واریزی: $amount تومان</font></div><br>".
            "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">نام بانک : $bank</font></div><br>".
            "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">شماره فيش , پيگيري, سند : $fish</font></div><br>".
            "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">عنوان پيغام: $onvan</font></div><br>".
            "<div align=\"right\" style=\"direction: rtl\"><font size=\"2\" face=\"Tahoma\">پيغام : $user_message</font></div><br>";
            $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
            $headers .= "From: $from \r\n";
            $headers .= "Reply-To: $from \r\n";
            mail($to, $subject, $body, $headers);
    } else {
        $error = "لطفا تمامی فیلد ها را تکمیل نمایید.";
    }
}
?>
<!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>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ارسال ايميل</title>
<style>
.tbl {
    border-radius: 5px 5px 5px 5px;
    direction: rtl;
    font-family: Tahoma;
    font-size: 12px;
    padding:10px 0;
}
table {
    border: 1px solid black;
}
.right {
    background-color: #F2F8FF;
    color: #003D59;
    font-size: 12px;
    line-height: 25px;
    width: 150px;
}
input, select, option, textarea {
    font-family: Tahoma;
    font-size: 11px;
}
#sent {
    background-color: #EEFBEE;
    border: 1px dashed green;
    border-radius: 5px 5px 5px 5px;
    box-shadow: -10px -10px 0 yellow;
    display: block;
    font-family: Tahoma;
    font-size: 12px;
    margin: 20px auto;
    padding: 10px;
    text-align: center;
    width: 580px;
}
#err{
    display:block;
    background-color:#FFF8F4;
    border:1px maroon dashed;
    font-family:Tahoma;
    width:580px;
    margin:20px auto 20px auto;
    font-size:12px;
    text-align:center;
    padding:10px;
}
.error {
    background: none repeat scroll 0 0 #F2F8FF;
    border: 1px solid;
    border-radius: 5px 5px 5px 5px;
    direction: rtl;
    font-family: tahoma;
    font-size: 12px;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
    width: 580px;
}
.ok {
    background: none repeat scroll 0 0 #F2F8FF;
    border: 1px solid;
    border-radius: 5px 5px 5px 5px;
    direction: rtl;
    font-family: tahoma;
    font-size: 12px;
    margin: 10px auto;
    padding: 10px;
    text-align: center;
    width: 580px;
}
</style>
</head>
<body>
<?php if(!empty($error)) echo '<div class="error">'.$error.'</div>'; ?>
<?php if(!empty($accept)) echo '<div class="ok">'.$accept.'</div>'; ?>
<form action="" method="post">
    <table width="600" align="center" class="tbl" >
        <tr>
            <td class="right">نام و نام خانوادگي :</td>
            <td class="left"><input type="text" id="name" name="name"/></td>
        </tr>
        <tr>
            <td class="right">يوزر نيم خريداري شده : </td>
            <td class="left"><input type="text" id="username" name="username"/></td>
        </tr>
        <tr>
            <td class="right">سرويس شما : </td>
            <td class="left">
                <select id="subject" name="subject">
                    <option>HTTPS+***</option>
                    <option>***</option>
                    <option>HTTPS+*** دو كاربره</option>
                </select>
            </td>
        </tr>
        <tr>
            <td class="right">ايميل: </td>
            <td class="left"><input type="text" id="email" name="email"/></td>
        </tr>
        <tr>
            <td class="right">شماره تماس : </td>
            <td class="left"><input type="text" id="mobail" name="mobail"/></td>
        </tr>
        <tr>
            <td class="right">ميزان اشتراک :</td>
            <td class="left">
                <select id="service" name="service">
                    <option>يک ماهه</option>
                    <option>دو ماهه</option>
                    <option>سه ماهه</option>
                    <option>شش ماهه</option>
                </select>
            </td>
        </tr>
        <tr>
            <td class="right">مبلغ واريزي :</td>
            <td class="left"><input type="text" id="amount" name="amount"/> تومان</td>
        </tr>
        <tr>
            <td class="right">نام بانک :</td>
            <td class="left">
                <select id="bank" name="bank">
                    <option>ملت</option>
                    <option>ملي</option>
                </select>
            </td>
        </tr>
        <tr>
            <td class="right">شماره فيش / پيگيري/ سند :</td>
            <td class="left"><input type="text" id="fish" name="fish"/></td>
        </tr>
        <tr>
            <td class="right">عنوان پيغام:</td>
            <td class="left"><input type="text" id="onvan" name="onvan"/></td>
        </tr>
        <tr>
            <td class="right" style="width: 150px" valign="top">پيغام :</td>
            <td class="left">
            <textarea id="message" name="message" style="width: 254px; height: 117px"></textarea></td>
        </tr>
        <tr>
            <td class="right" style="width: 150px" valign="top"></td>
            <td class="left"><input type="submit" name="submit" value="ارسال فرم" /><input type="reset" value="نگارش از نو" /></td>
        </tr>
    </table>
</form>
</body>
</html>