Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-04-2012, 01:37 AM   PM User | #1
D34th Maker
New Coder

 
Join Date: Jan 2012
Posts: 53
Thanks: 0
Thanked 3 Times in 3 Posts
D34th Maker is an unknown quantity at this point
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.
D34th Maker is offline   Reply With Quote
Old 10-04-2012, 02:39 AM   PM User | #2
stevenmw
Regular Coder

 
stevenmw's Avatar
 
Join Date: Jun 2007
Location: OK
Posts: 449
Thanks: 26
Thanked 30 Times in 30 Posts
stevenmw is an unknown quantity at this point
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
stevenmw is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:25 AM.


Advertisement
Log in to turn off these ads.