forms/email/capturing info from a form?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Drew Kellas

    #1

    forms/email/capturing info from a form?

    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?
  • Chris Smith

    #2
    Re: forms/email/capturing info from a form?

    Drew Kellas wrote:[color=blue]
    > 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?[/color]

    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.

    --

    The Easiest Way to Train Anyone... Anywhere.

    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation

    Comment

    • Lasse Reichstein Nielsen

      #3
      Re: forms/email/capturing info from a form?

      imdrewsome@yaho o.com (Drew Kellas) writes:
      [color=blue]
      > OK I admit it I'm new at java & java scripts.[/color]

      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.
      [color=blue]
      > 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.[/color]

      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.
      [color=blue]
      > Ideally, I want this to be done without the registrant having to see
      > it.[/color]

      Cannot be done. Luckily. Otherwise you could send spam mail from
      people's browsers when they visit your page ... without them knowning.
      [color=blue]
      > Can anyone help me out here?[/color]

      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 - lrn@hotpop.com
      DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
      'Faith without judgement merely degrades the spirit divine.'

      Comment

      • Lee

        #4
        Re: forms/email/capturing info from a form?

        Drew Kellas said:[color=blue]
        >
        >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?[/color]

        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".

        Comment

        • Drew Kellas

          #5
          Re: forms/email/capturing info from a form?

          Thanks for your help!

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

          ~Drew

          Comment

          Working...