PHP not working..Not receiving email

In Zip attchment the mail php code is working very good but when I change the textbox or delete some textbox then after submission sent confirmation is shows but not receiving any email in my inbox.

Please check my code and correct it…

HTML (FILE NAME : formpage.html)

<table width="100%" cellspacing="10">
                    <tr>
                        <td width="27%" align="right" style="font-size: 12px; color: #000;">
                            <strong>Email ID</strong>
                        </td>
                        <td colspan="2" align="left">
                            
                            <input name=EMAIL" id="email" type="email"/>
                            </td>
                    </tr>
                    <tr>
                        <td align="right" style="font-size: 12px; color: #000;">
                            <strong>Mobile No.</strong>
                        </td>
                        <td colspan="2" align="left">
                        
                            
                            <input name="MOBILE" type="tel" id="phone" />
                             </td>
                    </tr>
                    <tr>
                        <td colspan="3" align="right" style="font-size: 10px; width: 50%">
                            <table>
                                <tr>
                                    <td>
                                       <span>
                                            <a href="#">Register New user</a>
                                            |<a href="#">
                                            Contact&nbsp;Us</a> &nbsp;&nbsp;&nbsp;&nbsp;</span>
                                    </td>
                                    <td>
                                        <table border="0" cellspacing="0" cellpadding="0" class="btn">
                                            <tr>
                                                <td width="90" align="center" valign="middle">
                         
       <button type="submit" id="btnContactUs">Post It! </button>
                                                    
                                                    
                                                     
                                                </td>
                                            </tr>
                          
                                        </table>

php-contact-form-script-with-validation.zip (698.4 KB)

Why are you using tables for layout? You’ve been advised against doing that. The script you are using comes with a sample form created with <div> and <form> elements. Why not simply adjust that to suit your needs?

Also, your HTML is invalid.

How do you intend to submit this? There is no form element, and no method.

2 Likes

If I remove table might the formate I want it not make as I want .

Whatever if Ican see as my like format.

Sorry I not mention form elements by my mistake in this post but in actually I entered in form that is:

<form role="form" method="post" id="reused_form">
[TABLE-FORM AS MENTION IN POST]
</form>

Please Make It Correct…

As you seem to have very limited skills in both HTML and CSS, I suggest you start with the form supplied, and remove the fields you don’t require, one at a time, testing after each one that the form still works. Follow the customisation guide provided.

When you have it working as you want, then you can use CSS to change the appearance to suit.

(For the benefit of anybody unwilling to download the zip file, the OP is using this form: http://reusableforms.com/d/c/php-contact-form-script-with-validation)

You still seem to have difficulty understanding what the forums are for. We will help you as much as we can PROVIDED you show that you are trying to learn and understand. If all you want is someone to write code for you, you’ll need to hire someone.

3 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.