??-Submitting TAGs with text fields into an Email???

Status
Not open for further replies.

ATIRAGEPRO

Daemon Poster
Messages
1,400
I use Dreamweaver alot and was wondering; When somone makes those TAGS with all the text fields in them, how would i go about sending the info in those text fields to an email addres (as an email itself) when i press the "Submit" button? How would i get it to automaticaly compose it's own Email from the text fields i made, and send the info to an Email?

It seems logical, (and easy) but has anyone else done this before? Please gimme some coooooooode!! :eek: :confused: :cool:
 
ive sent emails using classic ASP. You could sub in the textbox values from a post action.

here's the email asp script that i wrote

Code:
<% Option Explicit %>

<% Dim MyEmail

       Set MyEmail = Server.CreateObject("CDONTS.NewMail")

       MyEmail.From = "tsimpkins@whooha.com"

       MyEmail.To = ""

       MyEmail.Subject = "Update WF Database"

       MyEmail.Body = "Tara has requested for you to update the WF Database."

       MyEmail.Send

       Set MyEmail = Nothing 
       
       response.write "email sent"
       
%>
<input type="button" onclick="window.back()">
 
Code:
-------------------File1.asp------------------------
<HTML>
<HEAD>
</HEAD>
<BODY>
<form action="File2.asp" method="POST">
Name:<input type="Text" name="Name" maxlength="20">

Company:<input type="Text" name="Company" maxlength="20">

Position:<input type="Text" name="Position" maxlength="20">

Address:<textarea name="Address" rows="3"></textarea>

Phone:<input type="Text" name="Phone" maxlength="20">

<input type="Submit" name="Submit" value="Submit">
</form>
</BODY>
</HTML>
-------------------File2.asp------------------------
<HTML>
<HEAD>
</HEAD>
<BODY>
<% Response.Write Request.Form("Name")%> works for 
<% Response.Write Request.Form("Company") %> at address 
<% Response.Write Request.Form("Address") %> as a 
<% Response.Write Request.Form("Position") %>.

</BODY>
</HTML>

Output: 
Jane Doe works for ISSI at address 5609 Kington Pike Knoville, TN as a Web Designer.
 
Status
Not open for further replies.
Back
Top Bottom