...

View Full Version : please help me with this form script



ImperialSpider
02-18-2005, 05:16 AM
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

Philip M
02-18-2005, 08:38 AM
<INPUT type="submit" value="Submit" onClick=form();>
should be simply
<INPUT type="submit" value="Submit">

There is no function form() to call.

ImperialSpider
02-18-2005, 05:03 PM
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

ImperialSpider
02-18-2005, 07:56 PM
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

Willy Duitt
02-18-2005, 08:15 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum