Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Contact form.
10-04-2012, 02:37 AM #1
- Join Date
- Jan 2012
- Thanked 3 Times in 3 Posts
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.
10-04-2012, 03:39 AM #2
A drop down is a select field
Then PHP would take the value of whatever option was selected and send that to you.Code:<select name="select"> <option value="feedback">Site Feedback</option> <option value="bug">Report A Bug</option> </select>
Then just have a text are if that is what you want.
It would all be in a form likeCode:<textarea name="body"></textarea>
http://www.phpeasystep.com/phptu/8.htmlCode:<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">