?
Solved

email form

Posted on 2006-05-22
11
Medium Priority
?
159 Views
Last Modified: 2010-04-09
I have a form and this will be sending to someone's email.
But my code does not work.
could you check my code?

<FORM METHOD=POST ACTION="mailto:mail@mail.com" ENCTYPE="text/plain">
<INPUT TYPE="text" NAME="username"> : name <BR>
<INPUT TYPE="text" NAME="email"> : email <BR>
comments <BR>
<TEXTAREA NAME="COMMENTS" ROWS="10" WRAP="hard">
</TEXTAREA>
 
<BR>
<INPUT TYPE="submit" VALUE="Send">
<INPUT TYPE="reset" VALUE="Clear">
</FORM>
0
Comment
Question by:bbvic
9 Comments
 
LVL 28

Expert Comment

by:strickdd
ID: 16735793
I believe you are going to need some sort of scripting language (PHP, VB, ASP etc) to be able to do this. I don't think the Action = "mailto...." will work.
0
 
LVL 16

Expert Comment

by:glenn_1984
ID: 16735940
1. You seem to be missing the SUBMIT code i.e. <input type=submit value='Submit Form'>

2. If you build the form, graphically, in Frontpage and have Frontpage extensions on the your web host, this will work automatically.

3. Or use a free tool like: http://phpformgen.sourceforge.net/

There are many on the net...just search for "free html form builder"
0
 
LVL 30

Accepted Solution

by:
GrandSchtroumpf earned 672 total points
ID: 16738041
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Expert Comment

by:burntout
ID: 16739538
This is a free form to email service so you wont need to know any programming to use it, just html.  It got some really good reviews from users.  When you get the email it will be much more readable using a form handler instead of doing the way you're trying to.

http://allforms.mailjol.net/
0
 
LVL 2

Expert Comment

by:omanca
ID: 16739876
it worked just fine on my PC.
Nothing wrong with the code.
0
 
LVL 19

Assisted Solution

by:DreamMaster
DreamMaster earned 664 total points
ID: 16740444
The problem you are facing has nothing to do with your code and all the more with the fact that in order for this to work, the client using the form must have an email program installed. Outlook or any other program. Hotmail won't work, other webbased e-mail won't work either.

The fact of the matter is, that in order to be sure that your mail will be send, you will need some form of server side coding, whether you use code such as burntout gave you, or write your own doesn't matter obviously. If you write your own it will also mean that your server should be configured for sending mails.

Whatever you do, try to avoid sending mail forms using action="mailto: some@address.com" as it is far from foolproof...

Regards,
Max.
0
 
LVL 2

Assisted Solution

by:burntout
burntout earned 664 total points
ID: 16742507
also, if you still want to do it that way I think you might have more luck changing the form method to get instead of post. and naming your form fields like below will make the email look better. This will make the email appear to be from the email address that was entered into the form which means you could reply to it if you wanted, the user name will be in the subject, and comments will be in the body of the message. Like DreamMaster said you will still have to have an email program installed and I don't know if all of them are compatible with this type of form but all the major ones are.

<FORM METHOD=GET ACTION="mailto:mail@mail.com" ENCTYPE="text/plain">
<INPUT NAME="subject"> : name <BR>
<INPUT NAME="from"> : email <BR>

<TEXTAREA NAME="body" ROWS="10" WRAP="hard">
</TEXTAREA>
 
<BR>
<INPUT TYPE="submit" VALUE="Send">
<INPUT TYPE="reset" VALUE="Clear">
</FORM>
0
 
LVL 2

Expert Comment

by:burntout
ID: 16742521
actually, don't know if the "from" will work but I hope you get the idea.
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 17183290
Is there anybody still out there? Was your question answered?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question