Java Help

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

    Java Help

    hi all

    im new to the whole java thing and need some help!

    im trying to make an e mail form and when i test it, it sends the e mail to
    the designated e mail address but when i go to the e mail account i sent it
    to it doesnt have any info that should have been submitted

    all i get in the e mail is: name=

    im using the following e mail form template: JavaFile.com e-mail form

    Thanks for any help you can offer!



  • David Dorward

    #2
    Re: Java Help

    Eagle35 wrote:
    [color=blue]
    > im new to the whole java thing and need some help![/color]

    This is a JavaScript newsgroup, not a Java newsgroup.
    [color=blue]
    > im trying to make an e mail form and when i test it, it sends the e mail
    > to the designated e mail address but when i go to the e mail account i
    > sent it to it doesnt have any info that should have been submitted[/color]
    [color=blue]
    > all i get in the e mail is: name=[/color]
    [color=blue]
    > im using the following e mail form template: JavaFile.com e-mail form[/color]

    A glance at that (you could have been more specific), suggests they use the
    mailto technique. Read all about it:



    Now read about how form data should be handled:


    --
    David Dorward http://dorward.me.uk/

    Comment

    • Lee

      #3
      Re: Java Help

      Eagle35 said:[color=blue]
      >
      >hi all
      >
      >im new to the whole java thing and need some help!
      >
      >im trying to make an e mail form and when i test it, it sends the e mail to
      >the designated e mail address but when i go to the e mail account i sent it
      >to it doesnt have any info that should have been submitted
      >
      >all i get in the e mail is: name=
      >
      >im using the following e mail form template: JavaFile.com e-mail form
      >
      >Thanks for any help you can offer![/color]

      It's probably not a good idea to use code from a site that
      refers to them "Java Scripts". It suggests that the author
      doesn't really understand that Javascript has nothing at all
      to do with Java.

      There is no Javascript or Java required to create an email
      form. All you need is HTML and to know that every visitor
      who uses the form has their default email agent defined so
      that the browser can invoke it, and that their browser
      supports the "mailto" protocol, and that they don't mind
      allowing your form to send their information via email.

      If you're willing to believe that all of those are true,
      all you need is something like this. Again, there is
      no Java or Javascript involved at all:

      <html>
      <body>
      <form action="mailto: you@yourdomain. com"
      method="post"
      enctype="text/plain">
      <input name="alpha"><b r>
      <input name="beta"><br >
      <select name="gamma">
      <option>one</option>
      <option>two</option>
      </select>
      <input type="submit">
      </form>
      </body>
      </html>

      Comment

      • David Dorward

        #4
        Re: Java Help

        Lee wrote:
        [color=blue]
        > <form action="mailto: you@yourdomain. com"[/color]

        .... that is too unreliable to use in a production environment.



        --
        David Dorward http://dorward.me.uk/

        Comment

        • Eagle35

          #5
          Re: Java Help

          yer i tried this and it works! all the info is sent by a email!

          Thanks for the help!


          "Lee" <REM0VElbspamtr ap@cox.net> wrote in message
          news:bnel980bag @drn.newsguy.co m...[color=blue]
          > Eagle35 said:[color=green]
          > >
          > >hi all
          > >
          > >im new to the whole java thing and need some help!
          > >
          > >im trying to make an e mail form and when i test it, it sends the e mail[/color][/color]
          to[color=blue][color=green]
          > >the designated e mail address but when i go to the e mail account i sent[/color][/color]
          it[color=blue][color=green]
          > >to it doesnt have any info that should have been submitted
          > >
          > >all i get in the e mail is: name=
          > >
          > >im using the following e mail form template: JavaFile.com e-mail form
          > >
          > >Thanks for any help you can offer![/color]
          >
          > It's probably not a good idea to use code from a site that
          > refers to them "Java Scripts". It suggests that the author
          > doesn't really understand that Javascript has nothing at all
          > to do with Java.
          >
          > There is no Javascript or Java required to create an email
          > form. All you need is HTML and to know that every visitor
          > who uses the form has their default email agent defined so
          > that the browser can invoke it, and that their browser
          > supports the "mailto" protocol, and that they don't mind
          > allowing your form to send their information via email.
          >
          > If you're willing to believe that all of those are true,
          > all you need is something like this. Again, there is
          > no Java or Javascript involved at all:
          >
          > <html>
          > <body>
          > <form action="mailto: you@yourdomain. com"
          > method="post"
          > enctype="text/plain">
          > <input name="alpha"><b r>
          > <input name="beta"><br >
          > <select name="gamma">
          > <option>one</option>
          > <option>two</option>
          > </select>
          > <input type="submit">
          > </form>
          > </body>
          > </html>
          >[/color]


          Comment

          • Eagle35

            #6
            Re: Java Help

            just one thing! how to i add some more boxes and add labels to them so
            people no what to type in them and edit the text in the drop down menu

            "Lee" <REM0VElbspamtr ap@cox.net> wrote in message
            news:bnel980bag @drn.newsguy.co m...[color=blue]
            > Eagle35 said:[color=green]
            > >
            > >hi all
            > >
            > >im new to the whole java thing and need some help!
            > >
            > >im trying to make an e mail form and when i test it, it sends the e mail[/color][/color]
            to[color=blue][color=green]
            > >the designated e mail address but when i go to the e mail account i sent[/color][/color]
            it[color=blue][color=green]
            > >to it doesnt have any info that should have been submitted
            > >
            > >all i get in the e mail is: name=
            > >
            > >im using the following e mail form template: JavaFile.com e-mail form
            > >
            > >Thanks for any help you can offer![/color]
            >
            > It's probably not a good idea to use code from a site that
            > refers to them "Java Scripts". It suggests that the author
            > doesn't really understand that Javascript has nothing at all
            > to do with Java.
            >
            > There is no Javascript or Java required to create an email
            > form. All you need is HTML and to know that every visitor
            > who uses the form has their default email agent defined so
            > that the browser can invoke it, and that their browser
            > supports the "mailto" protocol, and that they don't mind
            > allowing your form to send their information via email.
            >
            > If you're willing to believe that all of those are true,
            > all you need is something like this. Again, there is
            > no Java or Javascript involved at all:
            >
            > <html>
            > <body>
            > <form action="mailto: you@yourdomain. com"
            > method="post"
            > enctype="text/plain">
            > <input name="alpha"><b r>
            > <input name="beta"><br >
            > <select name="gamma">
            > <option>one</option>
            > <option>two</option>
            > </select>
            > <input type="submit">
            > </form>
            > </body>
            > </html>
            >[/color]


            Comment

            • David Dorward

              #7
              Re: Java Help

              Eagle35 wrote:
              [color=blue]
              > yer i tried this and it works! all the info is sent by a email![/color]

              So your system happens to be configured in a way in which it works, not all
              your visitors will be so lucky.



              --
              David Dorward http://dorward.me.uk/

              Comment

              • David Dorward

                #8
                Re: Java Help

                Eagle35 wrote:
                [color=blue]
                > just one thing! how to i add some more boxes and add labels to them so
                > people no what to type in them and edit the text in the drop down menu[/color]




                --
                David Dorward http://dorward.me.uk/

                Comment

                • Lee

                  #9
                  Re: Java Help

                  David Dorward said:[color=blue]
                  >
                  >Lee wrote:
                  >[color=green]
                  >> <form action="mailto: you@yourdomain. com"[/color]
                  >
                  >... that is too unreliable to use in a production environment.[/color]

                  Yes. I tried to give that impression.

                  Comment

                  Working...