/    Sign up×
Community /Pin to ProfileBookmark

Im currently making a mini questionaire for a project of mine.
I have done this before I just havent done it in over a year, and I was wondering whether you could either point me to an article, or give me some ideas on how to do this.

What im trying to do is make a form with a few textboxes, have a submit button and when the submit button is pressed I would like the information emailed to an email address.

It should be simple enough but I havent done it for awhile.
And im still only in high school.

So any help out there?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Warren86Oct 27.2004 — <HTML>

<Head>

<Script Language=JavaScript>

function sendMail(isForm){

isBody = "";
recipient = "[email protected]";
isSubject = "Form Data";
isBody = "Name: " + isForm.personal.value +" --- ";
isBody += "Address: " + isForm.address.value +" --- ";
isBody += "City: " + isForm.city.value +" --- ";
isBody += "State: " + isForm.state.value +" --- ";
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 @spydr_08 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,
)...