Click to See Complete Forum and Search --> : Email HTML/ASP Help
petrocan
05-12-2003, 09:47 AM
Just wondering if there is a way I can create a TEXT field within a form that would ask for an email address and when the user hits the SEND button it would put that email address with the addresses specified within my ASP script?
Any help would be appreciated!
Thanks.
(I have posted this int he ASP forum too.)
khalidali63
05-12-2003, 12:06 PM
I am sure it would have been responded in ASP forum,
What you have asked(it sounds like from your question) is the default behavior of a from submittion,any fields that are in a form will be in HTTP request object and you can get values for each form field by name in asp using
request.getParameter("field Name")
Bullschmidt
05-12-2003, 03:33 PM
Yes CDONTS can e-mail to something like Request.Form("MyEmailField") and www.asp101.com has a good Samples section which describes how to e-mail from a Web page in ASP.
petrocan
05-12-2003, 03:36 PM
Thanks guys,
I really know nothing about ASP, I just put together a small script that works to post stuff to an email with pre-determined email addresses. Where would I put the code you guys have provided in my ASP coding?
Thanks again.
Bullschmidt
05-12-2003, 03:57 PM
http://www.asp101.com/samples/email.asp has a good example.
And the line that says:
strTo = Request.Form("to")
Is similar to the line where I assumed the name of the e-mail address field was MyEmailField instead of being called To.
strTo = Request.Form("MyEmailField")