![]() ![]() |
| jsyarsin |
Nov 7 2009, 06:31 PM
Post
#1
|
|
Group: Members Posts: 2 Joined: 7-November 09 Member No.: 10,271 |
I am trying to create a form that will automatically e-mail me when it is filled out. Here is the form code. What is wrong???!!
<form action="" onSubmit="sendMail()" method="POST" enctype="plain/text" name="JeremyForm" id="form" target="_blank" > <table cellspacing="0" cellpadding="0" class="form"> <tr> <td style="width:198px; height:128px"><table cellspacing="0" cellpadding="0"> <tr> <td style="width:198px; height:27px"><input name="input" id="name" type="text" value="your name:"></td> </tr> <tr> <td style="width:198px; height:27px"><input name="input" type="text" value="your company:"></td> </tr> <tr> <td style="width:198px; height:27px"><input name="input" type="text" value="telephone:"></td> </tr> <tr> <td style="width:198px; height:27px"><input name="input" type="text" value="e-mail"></td> </tr> </table></td> <td style="width:202px; height:128px"><table cellspacing="0" cellpadding="0"> <tr> <td style="width:202px; height:109px"><textarea name="textarea" id="textarea" cols="0" rows="0">message:</textarea></td> </tr> <tr> <td style="width:202px; height:19px"><br style="line-height:1px"> <img src="images/spacer.gif" alt="" width="116" height="1"><strong><a href="#" onClick="document.getElementById('form').reset()">reset</a></strong><img src="images/spacer.gif" alt="" width="15" height="1"><strong><a href="submit.html"></a><a href="submit.html" onClick=action=sendto:info@ravenouschocolate.com>send</a></strong></td> </tr> </table></td> </tr> </table> </form> |
| Brian Chandler |
Nov 7 2009, 10:51 PM
Post
#2
|
|
Jocular coder ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,431 Joined: 31-August 06 Member No.: 43 |
QUOTE <a href="submit.html" onClick=action=sendto:info@ravenouschocolate.com>send</a> Where did you get this bit from? Did you make it up? Remember that html is not a natural language (sorry, the police will be on me if I say it's a "programming language", even though that would be a lot truer than thinking it's a natural language); you are not writing hints to help a human guess what you want. You need to read the manual (start with the FAQ) and learn how to build a syntactically correct, and then meaningful html document. The above is just a mess. |
| jsyarsin |
Nov 7 2009, 11:13 PM
Post
#3
|
|
Group: Members Posts: 2 Joined: 7-November 09 Member No.: 10,271 |
thanks for the super advice. yes, i made it following a variety of sources.
|
| pandy |
Nov 8 2009, 12:07 AM
Post
#4
|
|
Don't like donuts. Don't do MySpace. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: WDG Moderators Posts: 7,207 Joined: 9-August 06 Member No.: 6 |
See if this makes it clearer.
http://htmlhelp.com/faq/html/forms.html#mailto-form You may also need this. http://htmlhelp.com/reference/html40/forms/ Basically you have two options. Use a script on the server, in which case the URL to the script should be the value of the action attribute in the FORM tag. Or use mailto (action="mailto:you@example.com"), but that's a bad option for many reasons. If you can't run scripts where you are hosted, you may consider a remotely hosted solution. It will work better than mailto. http://www.hotscripts.com/category/remotel...orm-processors/ -------------------- “Never go to excess, but let moderation be your guide.”
– Cicero |
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 03:59 AM |