EdFred
Taxi to Parking
- Joined
- Feb 25, 2005
- Messages
- 31,402
- Location
- Michigan
- Display Name
- The Ed
- Home Airfield
- 9D9 / 6Y9 / 88TN
Ok, so here's what I want to accomplish, and I have both parts done so far, I just need to figure out how to mesh them.
Part #1 -
bot e-mail dodger
ok , so it's not the best, but it goes like this:
<SCRIPT language=JavaScript>
<!--
function orderme(address, domain, subject, body) {
window.location.replace('mailto:'+address+'@'+domain+'?subject='+subject+'&body='+body);
}
-->
</script>
And then the e-mail link is:
<a href="javascript
rderme()">email</a>
Part#2
I have a form that takes 8 fields and puts them into the body of an e-mail using
<FORM method=post action="mailto:address@domain?Subject=Purchase Order" enctype="text/plain">
<INPUT type=text name="from" size=26>
<INPUT type=text name="company" size=26>
...
...
<INPUT type="submit" value="Send Order">
</form>
What I want to do is merge the two so that my javascript body string gets all the form info written to it, so I don't have a "mailto:address@domain" hanging out there. I can't imagine it being too hard, but all my programming experience is just stealing from others, and then tweaking it a little bit, so I'm a bit stuck on how to mesh them.
Help me Obi-Wan!
Part #1 -
bot e-mail dodger
ok , so it's not the best, but it goes like this:
<SCRIPT language=JavaScript>
<!--
function orderme(address, domain, subject, body) {
window.location.replace('mailto:'+address+'@'+domain+'?subject='+subject+'&body='+body);
}
-->
</script>
And then the e-mail link is:
<a href="javascript
Part#2
I have a form that takes 8 fields and puts them into the body of an e-mail using
<FORM method=post action="mailto:address@domain?Subject=Purchase Order" enctype="text/plain">
<INPUT type=text name="from" size=26>
<INPUT type=text name="company" size=26>
...
...
<INPUT type="submit" value="Send Order">
</form>
What I want to do is merge the two so that my javascript body string gets all the form info written to it, so I don't have a "mailto:address@domain" hanging out there. I can't imagine it being too hard, but all my programming experience is just stealing from others, and then tweaking it a little bit, so I'm a bit stuck on how to mesh them.
Help me Obi-Wan!
Last edited: