Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Tutorial on...

Posted 12 Aug 2005 22:52:27
1
has voted
12 Aug 2005 22:52:27 - Voasi - posted:
I've scoured the web trying to find a basic tutorial on this. I have been using Frontpage 2003 for awhile when it comes to their forms. You can have a form e-mailed to you when someone fills it out.

I don't really like how FP lays elements out, as well as other things. I've been using Dreamweaver to do a lot of layouts lately, but I haven't been able to find a tutorial on how to have a form get e-mailed to you. I'm assuming it's going to be a CGI thing, but no tutorial I found was in plain english.

I did find the HTML way to send a form through the browser. MSIE pops-up the nasty "The browser is trying to send an e-mail through you. Do you want to proceed?", or something along those lines. Don't want that popping up at all.

Anyone know of a good tutorial or program to use?

Thanks!!!

Search Engine Marketing News, Secrets, and Techniques Blog

Edited by - Voasi on 12 Aug 2005 22:54:46

Replies

Replied 16 Aug 2005 17:18:49
16 Aug 2005 17:18:49 adam partridge replied:
make sure your host supported ASP

then create a page called mail.asp and paste and save this
<pre id=code><font face=courier size=2 id=code>&lt;%

strBody = ""
For Each strItem in Request.Form
strBody = strBody & strItem & ": " & Request.Form(strItem) & vbCrLf
Next

Set objMail = Server.CreateObject("CDONTS.Newmail"
objMail.To = " "
objMail.Subject = "Webform"
objMail.From = Request.Form("email_address"
objMail.Body = strBody
objMail.Send
Set objMail = Nothing

Response.Redirect("thanks.asp"
%&gt;
</font id=code></pre id=code>

then set your form to POST to mail.asp





Edited by - adampartridge on 16 Aug 2005 17:24:29
Replied 16 Aug 2005 23:33:43
16 Aug 2005 23:33:43 - Voasi - replied:
From one Adam to the next, thanks.

Unfortunately, my hosting company doesn't support ASP. BUT, I did find a great little PHP script that works on their forums (Powweb.com). If anyone is interested in the PHP script, here's the thread: forum.powweb.com/showthread.php?t=54694 . It's the one from YvetteKuhns.

Thanks!

<a href="www.voasi.com">Search Engine Marketing News, Secrets, and Techniques Blog</a>

Reply to this topic