...

A little help with a E-mail code

David_Stokes
07-05-2002, 05:03 PM
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 :)

allida77
07-05-2002, 06:15 PM
What do you mean by

but the E-mail isnt enter to me
?

David_Stokes
07-05-2002, 06:17 PM
sorry that should be Sent** thanks i missed that

Bosko
07-05-2002, 06:19 PM
You need some server side scripting to proces the form and send it to you,then you put that in the action attribute.

David_Stokes
07-05-2002, 06:28 PM
is there any HTML code that will do it ?

Bosko
07-05-2002, 06:34 PM
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.

bassleader
07-05-2002, 10:21 PM
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 (http://developer.netscape.com/docs/manuals/index.html), 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

Bosko
07-05-2002, 10:39 PM
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.

justame
07-06-2002, 02:28 AM
dav...
you might want to just a checkout® the asp forums mod...aka whammys link...

http://www.solidscripts.com/



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum