Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Ireland
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 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="davidstokes5000@yahoo.com">

    <table width="29%">
    <tr>
    <td width="35%">Name</td>
    <td width="65%"><input name="Name" type="text" id="Name"></td>
    </tr>
    <tr>
    <td>E-mail</td>
    <td><input name="EMAIL" type="text" id="EMAIL"></td>
    </tr>
    <tr>
    <td>Comments</td>
    <td><textarea name="comments" cols="45" rows="6" id="comments"></textarea></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input type="submit" name="Submit" value="Submit">
    <input type="reset" name="Submit2" value="Reset"> </td>
    </tr>
    </table>
    </form>



    Any help is greatful
    Last edited by David_Stokes; 07-05-2002 at 06:18 PM.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What do you mean by

    but the E-mail isnt enter to me
    ?

  • #3
    New Coder
    Join Date
    Jul 2002
    Location
    Ireland
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry that should be Sent** thanks i missed that

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You need some server side scripting to proces the form and send it to you,then you put that in the action attribute.

  • #5
    New Coder
    Join Date
    Jul 2002
    Location
    Ireland
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    is there any HTML code that will do it ?

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    New Coder
    Join Date
    Jun 2002
    Location
    Caerdydd
    Posts
    59
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    BL

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    dav...
    you might want to just a checkout® the asp forums mod...aka whammys link...

    http://www.solidscripts.com/
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •