14-04-16, 03:51 PM
(آخر تعديل لهذه المشاركة : 14-04-16, 03:53 PM {2} بواسطة محمد كريّم.)
ابحث عن
if(isset($_POST['send']))
أضف فوقها مباشرة
وهذا كود html الجديد
استبدله بالقديم
جرب الآن
عفوا انت مغير name الفورم من send الى ارسال
لذلك في ردي السابق ابحث عن
if(isset($_POST['ارسال']))
اعتذر
if(isset($_POST['send']))
أضف فوقها مباشرة
PHP كود :
if(isset($_POST['ارسال']))
{
$name = $_POST['name'];
$mail = $_POST['mail'];
$tel = $_POST['tel'];
$sub = $_POST['sub'];
$msg = $_POST['msg'];
}
else
{
$name = "";
$mail = "";
$tel = "";
$sub = "";
$msg = "";
}
وهذا كود html الجديد
استبدله بالقديم
كود :
<form action="complains.php" method="post" style="position:relative;direction:rtl;height: 571px; width: 640px;margin-right:150px;float:right" >
<label style="margin-top: 0px;margin-right: 0px;margin-left:0px;padding:0px">الاسم</label>
<input type='text' value="$name" name='name' style="padding:0px;height:25px;width: 349px; margin-top: 0; margin-bottom: 0;" class="auto-style24" />
<br style="height:20px" />
<label style="margin-top: 0px;margin-right: 0px;margin-left:0px;padding:0px">البريد الالكتروني</label>
<input type='text' value="$mail" name='mail' style="padding:0px;height:25px;width: 349px; margin-top: 0; margin-bottom: 0;" class="auto-style28" />
<br style="height:20px" />
<label style="margin-top: 0px;margin-right: 0px;margin-left:0px;padding:0px">رقم التليفون</label>
<input type='text' value="$tel" name='tel' style="padding:0px;height:25px;width: 349px; margin-top: 0; margin-bottom: 0;" class="auto-style33" />
<br style="height:20px" />
<label style="margin-top: 0px;margin-right:0px;margin-left:0px;padding:0px">الموضوع</label>
<input value="$sub" type='text' name='sub' style="color:maroon;height:25px;width: 348px; font-size:16px" class="auto-style34" />
<br style="height:20px" />
<label style="margin-top: 0px;margin-right: 0px;margin-left:0px;padding:0px">الرسالة</label>
<textarea name="msg" rows="8"style=" width: 347px" class="auto-style35" ></textarea>
<br /><br />
<input type="submit" name ="ارسال" value="ارسال" style="width: 70px;color:#14538a;font-weight:bold;font-size:14px;font-family:'Droid Arabic Kufi';height: 41px;background-color: #96C6DF;" class="auto-style32" />
<input type="reset" value="مسح" style="width: 70px;color:#14538a;font-weight:bold;font-size:14px;font-family:'Droid Arabic Kufi';height: 41px; background-color: #96C6DF;" />جرب الآن
عفوا انت مغير name الفورم من send الى ارسال
لذلك في ردي السابق ابحث عن
if(isset($_POST['ارسال']))
اعتذر

