By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,598 Members | 1,894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,598 IT Pros & Developers. It's quick & easy.

forms/email/capturing info from a form?

P: n/a
Hi all!

OK I admit it I'm new at java & java scripts. I have been asked to
create a registration form for a club page on the web. I have been
able to create my input boxes and am now trying to find a way to get
the material entered in the boxes to populate an email to myself.
Ideally, I want this to be done without the registrant having to see
it.

Can anyone help me out here?
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Drew Kellas wrote:
OK I admit it I'm new at java & java scripts. I have been asked to
create a registration form for a club page on the web. I have been
able to create my input boxes and am now trying to find a way to get
the material entered in the boxes to populate an email to myself.
Ideally, I want this to be done without the registrant having to see
it.

Can anyone help me out here?


Drew,

I already replied to you in comp.lang.java.programmer, where you posted
an identical article. If you would like to write to several places at
once, it's really best to use a cross-post, which doesn't split up the
resulting conversation, along with an appropriate followup header if
possible. That also makes it easier on you, since you don't have to
check many different places for isolated responses.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
Jul 20 '05 #2

P: n/a
im********@yahoo.com (Drew Kellas) writes:
OK I admit it I'm new at java & java scripts.
Very!
I don't know what "Java scripts" are, but Java has nothing to do with
the language we are discussing in this group: Javascript. It is not
scripts written in Java. It is not Java. It is a completely different
language. The marktoid at Netscape Corp who decided to rename
LiveScript to JavaScript (probably to ride the wave of hype) will not
soon be forgiven.
I have been asked to create a registration form for a club page on
the web. I have been able to create my input boxes and am now
trying to find a way to get the material entered in the boxes to
populate an email to myself.
Use server side programming for that. Forms are basic HTML, and
they work without any Javascript, including sending them to the
server.

If you use an action URL with the mailto: protocol, you can
(sometimes) get the form sent as mail instead of to a server.
However, that depends *heavily* on the configuration of the user's
machine (he has a mail program and accepts mailto: URLs), and
the format of the mail depends on the browser used too.

It is much safer to just send it to a server that you control, and
let that send the mail.
Ideally, I want this to be done without the registrant having to see
it.
Cannot be done. Luckily. Otherwise you could send spam mail from
people's browsers when they visit your page ... without them knowning.
Can anyone help me out here?


1) Use server side programming.

2) If completely unavailable, use some free mailer form that you find on
the net, i.e., use somebody else's server side programming (I don't
know where to begin to look).

3) If desperate, use a mailto: URL as the action of the form, but expect
it to fail.

In none of these cases do you need Javascript.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3

P: n/a
Lee
Drew Kellas said:

Hi all!

OK I admit it I'm new at java & java scripts. I have been asked to
create a registration form for a club page on the web. I have been
able to create my input boxes and am now trying to find a way to get
the material entered in the boxes to populate an email to myself.
Ideally, I want this to be done without the registrant having to see
it.

Can anyone help me out here?


JavaScript, not java scripts. It has nothing to do with Java.

You can't do this from the web page, itself. You can't even be
sure that the user has any way of sending mail from the machine
they're using (it might be in a library, etc).

Whoever is providing your web server probably has a utility that
you can use. You set the ACTION attribute of your form to send
the data in the input boxes to their server-side utility, and it
sends the information to you via email. Exactly what you need to
do to tell it what information to send and where to send it will
depend on their specific utility, so you should check their web
site for support pages, or ask them.

If they can't help you, there are also some places that will be
happy to provide the same service in exchange for placing some
advertisements on your form.

Google for "formmail" and/or "mailform".

Jul 20 '05 #4

P: n/a
Thanks for your help!

Looks like we're going to use a "survey site" to capture our membership.

~Drew
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.