alin30
July 29th, 2013, 16:36
سلام دوستان
من یه فرم اچ تی ام ال دارم که میخوام مشخصاتی که توش وارد میشه رو بعد از زدن دکمه ارسال به یک ایمیل بفرسته
شاید فرم مشکل داشته باشه یا درست باشه اونش رو خودتون بگید و موضوع مهم اینه که چطور باید این جاهای پرشده به ایمیل مورد نظر ارسال بشه؟ لزوما میخوام همش کد اچ تی ام ال باشه
ممنون میشم کمک کنید
:53:
<html>
<head>
<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>
<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"><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"><input type="text" id="amount" name="amount"/></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>
من یه فرم اچ تی ام ال دارم که میخوام مشخصاتی که توش وارد میشه رو بعد از زدن دکمه ارسال به یک ایمیل بفرسته
شاید فرم مشکل داشته باشه یا درست باشه اونش رو خودتون بگید و موضوع مهم اینه که چطور باید این جاهای پرشده به ایمیل مورد نظر ارسال بشه؟ لزوما میخوام همش کد اچ تی ام ال باشه
ممنون میشم کمک کنید
:53:
<html>
<head>
<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>
<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"><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"><input type="text" id="amount" name="amount"/></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>