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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Location
    San Antonio, TX
    Posts
    131
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post please help me with this form script

    I am trying to get this script to post information from a form to my email address...but the email is being sent blank. What am I doing wrong with this code???
    below is my code...

    <P>
    <FORM METHOD="POST" ACTION="mailto:ldj1969@hotmail.com?SUBJECT=JOIN GAMES" ENCTYPE="text/plain">

    YOUR FULL NAME: <BR>
    <INPUT size="30" name="NAME"><p>

    YOUR e-MAIL ADDRESS: <BR>
    <INPUT size="30" name="E-MAIL"><BR>

    YOUR MAILING ADDRESS: <BR>
    <INPUT size="30" name="MAIL1"><BR>
    <INPUT size="30" name="MAIL2"><BR>
    <INPUT size="30" name="MAIL3"><p>

    YOUR HOME TELEPHONE NUMBER: <BR>
    <INPUT size="15" name="PHONE"><p>


    <INPUT type="submit" value="Submit" onClick=form();>
    </FORM>

    </BODY>
    </HEAD>
    </HTML>

    I am not sure what I am missing, or what I am doing wrong...Can someone help me?

    Thanks,

    Imperial Spider

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,907
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    <INPUT type="submit" value="Submit" onClick=form();>
    should be simply
    <INPUT type="submit" value="Submit">

    There is no function form() to call.

  • #3
    Regular Coder
    Join Date
    Jan 2004
    Location
    San Antonio, TX
    Posts
    131
    Thanks
    1
    Thanked 0 Times in 0 Posts

    thanks phillip, but...

    I tried that, and it still did not send any info... but, wouldn't the code

    <FORM METHOD="POST" ACTION="mailto:ldj1969@hotmail.com?SUBJECT=JOIN GAMES" ENCTYPE="text/plain">

    be the function to call? or is there something missing from that part of the code? Should I put a function? If so, What would be the code, and Where would I put it in the code? I am just a novist, so any assistance is greatly appreciated...


    Thanks for your help,

    ImperialSpider

  • #4
    Regular Coder
    Join Date
    Jan 2004
    Location
    San Antonio, TX
    Posts
    131
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question can noone figure this out?

    Surely someone knows what I am doing wrong with this code. Please help. I have tried going to search engines, and not noticed any differences in my code, and the ones used in other websites. Am I am forgetting part of the code, or am I using the wrong code, or what? It seems like such a basic thing to most, but I am not seeing what is stopping it from working. I have tried Phillip's suggestion and it did not work, all I want to do is have the form info that is filled out by the user to be emailed to me at my email address. Can anyone help with this please?


    Thanks again,

    ImperialSpider

  • #5
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You're not necassarily doing anything wrong... Many email clients do NOT forward the contents of a form when submitted using the mailto: protocol... that's how it is... You can try searching the forums, on several occasions I have posted a method which took the contents of a form and placed those input names and values into a hidden division and then appended the content of that division to the body of the message... It works, but this is all done easier and better using serverside scripting and not the users email client...

    Good Luck;
    .....Willy


  •  

    Posting Permissions

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