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

Thread: Contact form.

  1. #1
    New Coder
    Join Date
    Jan 2012
    Posts
    53
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Question Contact form.

    Okay so i haven't really been on this site in a while or posted anyways. So right now i'm in the middle of making a desktop wallpaper site and i want to make a contact form. Now i know this also requires php i believe anyways. Now what i'm wondering is how would i make it to where it would automatically send an e-mail with some of the options where i would have like a textbox and a drop down menu and the drop down menu will say what kind of contact it is for/ the reason for the contact then the text box will explain what is chosen on the drop down menu.

    Basically a contact form that will be automatically formatted to be like:

    [drop down menu option]

    [all text in the text box]

    that will send that info to my E-mail once they hit submit or whatever.

  • #2
    Regular Coder stevenmw's Avatar
    Join Date
    Jun 2007
    Location
    OK
    Posts
    497
    Thanks
    27
    Thanked 31 Times in 31 Posts
    A drop down is a select field

    Code:
    <select name="select">
    <option value="feedback">Site Feedback</option>
    <option value="bug">Report A Bug</option>
    </select>
    Then PHP would take the value of whatever option was selected and send that to you.

    Then just have a text are if that is what you want.

    Code:
    <textarea name="body"></textarea>
    It would all be in a form like

    Code:
    <form action="submit.php>
    <select name="select">
    <option value="feedback">Site Feedback</option>
    <option value="bug">Report A Bug</option>
    </select> 
    <textarea name="body"></textarea>
    <input type="submit" value="email me">
    http://www.phpeasystep.com/phptu/8.html


  •  

    Posting Permissions

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