ecohouse
asked on
VB Script Question
I have a webpage that has a form on it with a few fields in the form. I want to be able to click on a button and have the information in the form emailed to a certain email address.
So I would like to know how to do this using VB Script if it's possible.
Thanks.
So I would like to know how to do this using VB Script if it's possible.
Thanks.
ASKER
Thanks for the information. But isn't there a simple way to just code this using either VB Script or ASP instead of having to get a component?
add action="mailto:yourname@do main.com" to a <form> tag:
<form name="myForm" method="post" action="mailto:yourname@do main.com">
<form name="myForm" method="post" action="mailto:yourname@do
let me know if that's what you looking for
ASKER
Thanks for the help. I'm new to webpages. Where do I be put the code you gave me on the form? Do I need to create a function?
And how does it take all of the information from the form?
And how does it take all of the information from the form?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<html>
<body>
<form name="myForm" method="post" action="mailto:yourname@do main.com">
'***YOUR FORM FIELDS GO HERE
</form>
</body>
</html>
<body>
<form name="myForm" method="post" action="mailto:yourname@do
'***YOUR FORM FIELDS GO HERE
</form>
</body>
</html>
Jagata, when you simply want to e-mail the forn's results that method works just fine. It seems like ecohouse does not want to composen an e-mail but simply e-mail the results of the form
besides, ecohouse is using html and vbscript, not asp.
YZlat, If you want to discuss the flaws of submitting a form via email, open a question with some points for me, otherwise I couldn't care less.
http://www.dundas.com/other/dundasmailer/index.aspx?Section=DundasMailer&Body=body.htm
And also check out w3 JMail Free which we use at work;
http://www.dimac.net/