Click to See Complete Forum and Search --> : Needing to have forms submitted securely to send to email


Bodie
08-18-2006, 12:58 PM
Hi,

Help needed!!!

I am trying for the first time to create a web site for my company and I have managed to create a form which I want users to be able to complete and submit on my web site that can send some information which is secure to my email - I have read that some scripting is required - it is at that point where I come to a stand still.

Also after they have clicked the submit button I am wanting the page to change to a thank you page - again I have no ideas

Can anyone please help me..... :)

Thanks

spiderwrangler
08-21-2006, 03:28 PM
If you use dreamweaver, you can download this free extension from Kaosweaver.com (http://www.kaosweaver.com/extensions/details.php?id=69&cid=3).

If not, try this adding to this in your page:

<form name="form" method="post" action="kwmailervb.asp">
<table>
<tr>
<td>Name:</td>
<td><input name="name" type="text"></td>
</tr>
<tr>
<td>E-mail Address: </td>
<td><input type="text" name="email"></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Submit"></td>
<td><input type="reset" name="Clear" value="Clear Form"></td>
</tr>
</table>
</form>

And then add this as "kwmailervb.asp" in the same folder:

<%
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.From = Request.Form("name")
objNewMail.Subject = "Form Name"
objNewMail.To = "designated email address"
objNewMail.Body = "name=" & Request.Form("name") & " " & VBCrLf & "email=" & Request.Form("email") & " " & VBCrLf & ""
objNewMail.Send
Set objNewMail = Nothing

response.redirect "Redirection Link"
%>

Hope this helps!

rani25
08-22-2006, 12:32 AM
Hi... I have a similar issue here. I don't really know how to put this script into use. I have not created a dynamic website like this before, but really want to learn. So i was wondering if you were able to figure it out and if you could help me.

Also i need to put all my products and its details on access and bring it up to my website. If you know how that works too...

Your help will really be appreciated :)