Need to post a form to the sender through mailto(?). They fill in their email address among other details, and the form is emailed to them (for confirmation) and also to one other (as an order).
Any help greatly appreciated! (My first time using this site)
Let me see if I have it straight:
You want a form where the user enters their email - and collects other information (comments, name, etc)...and then emails a copy of this information both to an email address you specify, as well as the email they entered?
BTW: sounds like this, for future reference, would be better placed in the "Server Side Scripting & Database Development" forum.
The best way to do this is via server-side scripting, this way you can have the variable/form fields that the user filled in and send an email to the client, plus send another email to where ever you want.
But yes, Cold Fusion, Perl, PHP and ASP can all accomplish this without too much trouble. Odds are your host supports, at the very least, Perl.
Presuming the address is in a field called 'email' and you are using a regular button with an onClick instead of a submit button:
<form ...no action...>
<input type='button' onClick='sendForm(this.form)'>
var emailAdd = formObj.email.value;
formObj.action = 'mailto:' + emailAdd;
BTW: Happy Turkey Day :D
Thanks Vincent - exactly what I needed! One question however - when I tap on the text fields it tends to treat it as a 'mailto' link, and opens my mail app instantaneously. How can I get around this, or have I done something wrong?
Unfortunately, that is what 'mailto:' does. Also, if you are sending the form field values and/or message, you may have problems with some versions of Outlook/AOL mail program in that the form fields and other information will be dumped in the subject line.
As everyone else above said, cgi may be better solution.