/    Sign up×
Community /Pin to ProfileBookmark

Submitting Forms

I’m trying to submit a form automatically without having the person filling out the form have to sign into their e-mail provider (i.e. yahoo, hotmail, etc…) using the mailto: tag. If this is possible please tell me how it can be done. If I didn’t quite explain myself properly, let me know.
Thanks,
Mike

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Warren86Apr 25.2005 — <HTML>

<Head>

<Script Language=JavaScript>

function sendMail(isForm){

isBody = "";
recipient = "[email protected]";
isSubject = "Form Data";
isBody = "Name: " + isForm.personal.value +"%0D%0A";
isBody += "Address: " + isForm.address.value +"%0D%0A";
isBody += "City: " + isForm.city.value +"%0D%0A";
isBody += "State: " + isForm.state.value +"%0D%0A";
isBody += "Zip: " + isForm.zip.value;
document.forms.Send.action = "mailto:"+recipient+"?subject="+isSubject+"&body="+isBody+"&nbsp"
}


</Script>

</Head>

<Body>

<form name='Form1'>

Name <input name='personal' size=25><br>

Address <input name='address' size=30><br>

City <input name='city' size=15> State <input name='state' size=2><br>

Zip Code <input name='zip' size=4><br>

<input type=Reset>

</form>

<form name='Send' action=''>

<input type="submit" value="Send by Email" onclick="sendMail(document.Form1)">

</form>

</Body>

</HTML>
×

Success!

Help @HisWebMaster spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...