SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Integrating Form to a Database!

    Pls i want someone to assist me on how i can integrate an email contact form into my web hosting account.

    1.I have just hosted "economy package account" with godaddy. Would the package allow .php files?

    2.Am i going to create a database?

    Thirdly, how am i going to be accessing the submitted data in the "formail.php" in the email contact form below.


    This is the specimen of email contact form:
    <div id="webcontact">
    <form name="form1" method="post" action="formmail.php">
    <INPUT type="hidden" name="recipient" value="info@xxxxxxxx.com">
    <INPUT type="hidden" name="redirect" value="http://www.xxxxxxxx.com/thanks.htm">
    <INPUT type="hidden" name="required" value="name,email">Name -- <font color="#FF0000">*required</font><br>
    <input name="name" type="text" size="25" class="webcontact1" tabindex="1">
    <br>Email -- <font color="#FF0000">*required</font><br>
    <input name="email" type="text" size="25" class="webcontact1" tabindex="2">
    <br>Subject<br>
    <input name="subject" type="text" size="25" class="webcontact1" tabindex="3">
    <br>Message<br>
    <textarea name="comments" cols="50" rows="5" class="webcontact1" tabindex="4">Kindly leave your message here! </textarea>
    <br>How Did You Find Us?<br>
    <select size="1" name="howdidyoufindus" class="webcontact1" tabindex="5">
    <option>---none---</option>
    <option>Yahoo Search Engine</option>
    <option>Google Search Engine</option>
    <option>Other Search Engines</option>

    </select> <br>
    <br><input type="submit" value="submit form" class="webcontact2"><input type="reset" id="Reset" value="clear" name="clear" class="webcontact2">
    </form>
    </div>

  2. #2
    phpLD Fanatic bronze trophy dvduval's Avatar
    Join Date
    Mar 2002
    Location
    Silicon Valley
    Posts
    3,626
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I don't know how deep you want to get into this, but certainly you would need to learn about creating a mysql database, setting up values, and writing a script in php (yes, it works on godaddy) to add it to the database. Then of course you are probably going to want to write a script to view the data in the database.

    An alternative that might be a little faster for you would be to use a Form from Google Docs. You could probably be up and running in less than an hour.


Bookmarks

Posting Permissions

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