السلام عليكم
مسوي فورم في ادخال للبريد والموصوع والرسلة وينرسل للبريد محدد
المشكلة كيف يتم التاكد انه textbox غير فارغ قبل مايرسل
انا مسوي بhtml
وابغى اضيف التحقق php
<form method="POST" action="send.php"> <div align="center"> <table border="0" width="800" id="table1" style="border-color:#0000FF; border-collapse: collapse" cellpadding="0" bordercolor="#0000FF" bgcolor="#FDFAED" height="300"> <!-- MSTableType="nolayout" --> <tr> <td style="border-right-style: solid; border-right-width: 1px; border-top-style: solid; border-top-width: 1px" > <p align="center"><b>الاســـم</b></td> <td width="580" height="40" style="border-left-style: solid; border-left-width: 1px; border-top-style: solid; border-top-width: 1px"> <p align="center"> <input name="name" size="40" dir="rtl" style="float: right"></td> </tr> <tr> <td height="43" style="border-right-style: solid; border-right-width: 1px" > <p align="center"><b>البريد الالكتروني</b></td> <td height="40" width="580" style="border-left-style: solid; border-left-width: 1px" > <p align="center"> <input name="email" size="40" dir="rtl" style="float: right"></td> </tr> <tr> <td height="40" style="border-right-style: solid; border-right-width: 1px" > <p align="center"><b>الموضوع</b></td> <td height="40" width="580" style="border-left-style: solid; border-left-width: 1px" > <input type="text" name="subject" size="40" dir="rtl"></td> </tr> <tr> <td height="154" style="border-right-style: solid; border-right-width: 1px; border-bottom-style: solid; border-bottom-width: 1px" > <p align="center"><b>الرسالة</b></td> <td width="580" height="154" style="border-left-style: solid; border-left-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"> <textarea rows="8" name="massage" cols="40" dir="rtl"></textarea></td> </tr> </table> </div> <p align="center"><input type="submit" value="إرسال" name="B1"><input type="reset" value="إعادة تعيين" name="B2"></p> </form>
فياليت احد يساعدني و وين بزبط اضيف الكود
وشكرا