Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Can you help with my Mailto: form?

Sep 20, 2006 11:26PM PDT

Hi all,

Ok, so here's my problem;

I've created a website for my workplace and what I want to do is have a form (which I have created in dreamweaver) on a html page, I would like the user to fill in the form and click the submit button which will then send the form to an email address in the same format as the html page i.e. still in the form.

I've got as far as getting in to send the data in a raw format or an attachment but I'm stumped as to where to go next?!

Please help!

Please!

JBS

Discussion is locked

- Collapse -
That's news to me.
Sep 20, 2006 11:38PM PDT

If I re-read how mailto: links on a web page work, there is no submit button. I wonder if you have some code you need to share and mailto: is not even a factor.

Bob

- Collapse -
Sorry!
Sep 21, 2006 6:22PM PDT

Yeah, I've kind of skipped a bit of info there!

It is a form, created in dreamweaver with a submit button that onclick submits to a mailto:

Quite important that bit! Lol! Sorry again!

I've been told that I may need to have it submit to a database instead, then another form on the recipients computer would extract the relevant information from that database?!

God, I'm lost!

- Collapse -
Link, comment.
Sep 22, 2006 1:16AM PDT
http://www.utoronto.ca/webdocs/HTMLdocs/NewHTML/url_mailto.html shows the basic mailto and what it does.

If you drop talking about mailto, you may find that this has been solved thousands of times.

If I recall even the Dreamweaver book has a section on submit to your local database. Since you didn't reveal the name of your local database server or much about the host machine I can't be specific on how you will solve your code.

http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/bc00721f5a2a8d27/d49b00412909e7ae?lnk=st&q=submit+email&rnum=3&hl=en#d49b00412909e7ae writes it so well.

Bob
- Collapse -
What code are you using
Sep 21, 2006 12:13AM PDT

I have not done a form in Dreamweaver, but I am curious how you got the code to send it to an e-mail address. Is this a built in Dreamweaver function?

Webpage forms are meant to send data, not display data. If you want the e-mail formatted into a specific format you would need the script for the send form modified to also include formatting lines. Depending on your end purpose, this might not be worth the added time.

I usually have the raw data e-mailed (if I need a copy in my inbox) and also store the information into a database. I then have a loccation on my website that I can log into to retrieve the form data. By retrieving it through the webpage, I can have any format I want to display it in. This process also makes it nice to filter the information that was sent, and if it includes e-mail addresses it is easy to create mailing lists from it.

- Collapse -
regarding the technical problem with a mail to form:
Jul 19, 2008 1:56AM PDT

with regards to your mail to form early in 2006 .

Did you ever find a solution?

- Collapse -
See replies 4 and 5.
Jul 19, 2008 2:15AM PDT

The answers are already here.