Web Analytics Made Easy -
StatCounter A little help with a E-mail code - CodingForum


No announcement yet.

A little help with a E-mail code

  • Filter
  • Time
  • Show
Clear All
new posts

  • A little help with a E-mail code

    I want a place on my site where ppl can enter there name , E-mail address and a comment and press Submit and it will be sent to me, and they will be taken to a thank you screen. i have it nearly working , where they enter the info and when they press Submit they are taken to the Thank you screen , but the E-mail isnt sent to me , heres the code i'm useing , can u see anything wrong ??

    <form name="form1" method="post" action="thankyou.html">
    <!-- e-mail address of the person handling this form --!>
    <input type=hidden name=EMAIL VALUE="[email protected]">

    <table width="29%">
    <td width="35%">Name</td>
    <td width="65%"><input name="Name" type="text" id="Name"></td>
    <td><input name="EMAIL" type="text" id="EMAIL"></td>
    <td><textarea name="comments" cols="45" rows="6" id="comments"></textarea></td>
    <td><input type="submit" name="Submit" value="Submit">
    <input type="reset" name="Submit2" value="Reset"> </td>

    Any help is greatful
    Last edited by David_Stokes; Jul 5, 2002, 01:18 PM.

  • #2
    What do you mean by

    but the E-mail isnt enter to me
    does this sig match?


    • #3
      sorry that should be Sent** thanks i missed that


      • #4
        You need some server side scripting to proces the form and send it to you,then you put that in the action attribute.


        • #5
          is there any HTML code that will do it ?


          • #6
            Nope,the only thing you can do is put your email address in the action attribute but this will not work for many people.

            If you dont have server side scripting support ,I would recommend simply using a mailto link and placing the subject and the start of the body of the message within a link.


            • #7
              To expand on what Bosko has just said, in order to get the contents of a form to show up in your mailbox you need to set the UniversalSendMail privilege using the netscape.security.PrivilegeManager.enablePrivilege method. You can't do this without signing your script, and you can't sign your script without an object signing certificate. (I'm more or less quoting from the Client Side JavaScript Guide, get it at

              DevEdge Online, and see the chapter on security).

              Object signing certificates aren't cheap, and I'm fairly sure IE doesn't support it anyway (I'm happy to be proved wrong on this, by the way). All in all I think you're better off with a mailto: link, or learning some server-side coding.

              "nam et ipsa scientia potentas est" - Francis Bacon


              • #8
                Actually you can use without signing the page,but then it will display an popup asking you if you want to allow it.That annoying so you should sign the script.


                • #9
                  you might want to just a checkout® the asp forums mod...aka whammys link...

                  The New JustaBuster Version 2.0 OR JustaBusta Lite V2.0
                  ...just a special® thanx kinda hugs to jkd n' nex ...:O)))

                  CommemorateWTC.com --Please lend your support