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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Nov 2008
    Posts
    175
    Thanks
    4
    Thanked 6 Times in 6 Posts

    php contact form

    I have a contact form but I'm not very good with PHP and the contact form is rather long so when i try to use the free online ones when i go to add information it just doesn't submit and i also have a list box which i don't know how to cater for.

    I also would like it to submit to a database because all through testing these contact forms the emails don't seem very reliable and take up to a day to send.

    So does anyone have any contact form tutorials that submit to a database that will show me how to submit a list box as well.

    Thanks for the help.

  • #2
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Here is a simple contact form that I am typing out myself.

    Code:
    echo '<form action="send.php" method="post">
    echo 'Please fill out the information below to contact us.<br />';
    echo 'Name: <input type="text" name="name" value=""><br />';
    echo '<select name="gender">';
    echo '<option value="male">Male</option> <option value="female">Female</option></select><br />';
    echo '<input type="submit" name="submit" value="Contact Us">';
    Then in the isset just pull the POST information and put it in a query. Done

  • #3
    Regular Coder
    Join Date
    Nov 2008
    Posts
    175
    Thanks
    4
    Thanked 6 Times in 6 Posts
    Sorry how do i pull the isset?

    Also how do i put it in a query, i'm a designer and not a coder so i don't know anything about it.

    I need it to connect to phpmyadmin to store it in a database also.

    Thanks

  • #4
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,854
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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