Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Php email form troubles

    hi,

    I recently decided to make my own website for my business instead of paying somone. Iv finished it all but am stuck on an email form. Iv done the html part on my page and it looks good, i just need a php to send to my email then redirect to a thank you page and if fields are blank redirect to an error page . Here is the HTML if anyone could help me marry a PHP to it would be greatly appreciated.


    <form action="form.php" method="post">
    <table>
    <tr>
    <td>Name:</td><TD>
    <input type="text" name="email_address" value="" maxlength="100" />
    </tr>
    </td>

    <tr>
    <td>Phone number:</td><td>
    <input type="text" name="email_address" value="" maxlength="100" />
    </td>
    </tr>


    <tr>
    <td>Address:</td><br>
    <td>
    <textarea rows="5" cols="20" name="comments"></textarea>
    </td>
    </tr>



    <tr>
    <td>Description:</td><br>
    <td>
    <textarea rows="6" cols="50" name="comments"></textarea>
    </td>
    </tr>

    <tr><td>&nbsp;</td>
    <td>
    <input type="submit" value="Submit" />
    </td>
    </tr>
    </table>
    </form>
    <p></p>
    </p>

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,762
    Thanks
    23
    Thanked 546 Times in 545 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •