techjosh
03-24-2009, 10:37 PM
Hello. I've done loads of research and reached my 'give up-time for help' point. I want to have a contact page that the user inputs name, email, subject, body and clicks submit, where the opened up letter auto-fills in the subject with the input subject, and the body includes "name = name <br> email = email <br> body"
For example;
Name = [input box]
Email = [input box]
Subject = [input box]
Body = [huge input box]
[Email Button]
Result = Outlook, Thunderbird, etc. opens up with
Subject "(auto filled with subject input)"
Body "Name = (name input) <br> Email = (email input) <br> (body input)"
I've found that method="get" auto fills subject and body, but also researched ppl saying get is very limited since it's a url. So I've found that method="post" sort of does what I want, except it does NOT auto fill subject. Here's what I've got so far
<form action="mailto: techjosh@comcast.net" method="post" enctype="text/plain">
<div class="mail">Name: <input type="text" name="Name" size="40" maxlength="32"></div>
<div class="mail">Email: <input type="text" name="From" size="40" maxlength="32"></div>
<div class="mail">Subject:  <input type="text" name="Subject" size="80" maxlength="65"></div>
<div class="mail">Body:<div style="margin-left: 68px; margin-top: -20px"><input type="text" name="Body" rows="9" cols="60"></div></div>
<div style="text-align: center">
<input type="submit" value="Email">
<input type="reset" value="Reset">
</div>
</form>
BTW my style sheet includes
div.mail{
margin-left: 20px;
margin-top: 5px;
}
Any help would be greatly appreciated. Here's my website's Contact Page (techjoshonline.com/contact.html) if your curious
For example;
Name = [input box]
Email = [input box]
Subject = [input box]
Body = [huge input box]
[Email Button]
Result = Outlook, Thunderbird, etc. opens up with
Subject "(auto filled with subject input)"
Body "Name = (name input) <br> Email = (email input) <br> (body input)"
I've found that method="get" auto fills subject and body, but also researched ppl saying get is very limited since it's a url. So I've found that method="post" sort of does what I want, except it does NOT auto fill subject. Here's what I've got so far
<form action="mailto: techjosh@comcast.net" method="post" enctype="text/plain">
<div class="mail">Name: <input type="text" name="Name" size="40" maxlength="32"></div>
<div class="mail">Email: <input type="text" name="From" size="40" maxlength="32"></div>
<div class="mail">Subject:  <input type="text" name="Subject" size="80" maxlength="65"></div>
<div class="mail">Body:<div style="margin-left: 68px; margin-top: -20px"><input type="text" name="Body" rows="9" cols="60"></div></div>
<div style="text-align: center">
<input type="submit" value="Email">
<input type="reset" value="Reset">
</div>
</form>
BTW my style sheet includes
div.mail{
margin-left: 20px;
margin-top: 5px;
}
Any help would be greatly appreciated. Here's my website's Contact Page (techjoshonline.com/contact.html) if your curious