Sending Forms Through Email

by "Matthew Ohlman" <matthew(at)ohlman.com>

 Date:  Sun, 25 Aug 2002 17:21:23 -0500
 To:  "HWG Languages" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Sorry If you have gotten multiple posts of this email, because I think I
forgot to send in Plain Text.

Hello List. I am sending a form consisting of a hidden field and a submit
button through email using the CDONTS.NewMail object. However, when I try
and send it, I can't get the right apperance. When I don't put any
attributes in the form tag and just put <.form> the button appears fine, but
doesn't go to the right address. Here is my code (I haven't put the hidden
field in yet):

<%
  Dim objMail
  Dim htmlText
  Set objMail  = CreateObject("CDONTS.NewMail")


htmlText = htmlText & "<html>"
htmlText = htmlText & "<body>"
htmlText = htmlText & "<form action = test.asp>"
htmlText = htmlText & "<input type=submit>"
htmlText = htmlText & "</body>"
htmlText = htmlText & "</html>"

objMail.To = "matthew(at)ohlman.com"
objMail.From = "ohlman(at)ohlman.com"
objMail.Subject = "You Have Recieved An EMAIL!"



objMail.BodyFormat = 0

objMail.Body = htmlText
objMail.send



If err THEN
 response.write err.description & "Sorry! Error! Come Back Later! Please
report this bug to ohlman(at)ohlman.com"
else
 response.redirect "sucess.html"
end if

%>

-----
The email sends fine, but it looks like this:
---
<html><body><form action = test.asp><input type=submit></body></html>
---

I have tried using something like
htmlText=htmlText & "<form action =" & "test.asp" & ">"
but it didn't help either.

Thanks for any help.
Matthew
---
Matthew Ohlman
http://www.ohlman.com/
Professional, Affordable web pages
Reply to: matthew(at)ohlman.com
Business: ohlman(at)ohlman.com
"There's a difference between Philosophy and a bumper sticker"
  Charles Schultz

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.