T
tp_michele_jones
Hi,
I'm collecting an email address in one asp page as follows:
<%@ Language="VBScript"%>
<%Option Explicit%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Mailing Services</title>
</head>
<html>
<body topmargin="0" leftmargin="0" bgcolor="#000000" text="#000000"
link="#000000" vlink="#000000" alink="#000000">
<form method="POST" action="overstockconf.asp">
<table border="0" cellpadding="0" cellspacing="0" width="650">
<tr>
<td></td>
<td>E-mail</td>
<td><input type="TEXT" name="Email" size="50"></td>
</tr>
</table>
<%
Response.Write ("<input type=hidden name=Email value=" &
request.querystring("Email") & ">")
%>
</form>
</body>
</html>
And then I'm printing it out in a second asp page and an email as
follows:
<%@ Language="VBScript"%>
<%Option Explicit%>
<%
Dim strEmail
strEmail = Request.Form("Email")
strFrom = "(e-mail address removed)"
strTo = "(e-mail address removed)"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Mailing Services-Confirmation</title>
</head>
<html>
<body topmargin="0" leftmargin="0" bgcolor="#000000" text="#ffffff"
link="#990033" vlink="#003300" alink="#cc6600">
<form method="POST" action="overstockconf.asp">
<table border="0" cellpadding="0" cellspacing="0" width="650">
<tr>
<td> </td>
<td>Email</td>
<td><%= Request.Form("Email")%></td>
</tr>
</table>
<%
Dim objMail
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = strFrom
objMail.To = strTo
objMail.Subject = "Overstock Confirmation"
StrMessage = strMessage & "Authorizing Person's Email - " &
Request.Form("Email") & vbCrLf
objMail.Body = strMessage
objMail.Send
Set objMail = nothing
%>
</form>
</body>
</html>
Both the second asp page and the email add a comma after the email
address that was entered in the field in the first asp page. Does any
one know how to get rid of it.
I'm a new web developer and have lots of books all over my desk. I've
check news groups, but I still can't seem to figure this one out. I'm
hoping it's a silly little mistake.
Thanks,
Michele
I'm collecting an email address in one asp page as follows:
<%@ Language="VBScript"%>
<%Option Explicit%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Mailing Services</title>
</head>
<html>
<body topmargin="0" leftmargin="0" bgcolor="#000000" text="#000000"
link="#000000" vlink="#000000" alink="#000000">
<form method="POST" action="overstockconf.asp">
<table border="0" cellpadding="0" cellspacing="0" width="650">
<tr>
<td></td>
<td>E-mail</td>
<td><input type="TEXT" name="Email" size="50"></td>
</tr>
</table>
<%
Response.Write ("<input type=hidden name=Email value=" &
request.querystring("Email") & ">")
%>
</form>
</body>
</html>
And then I'm printing it out in a second asp page and an email as
follows:
<%@ Language="VBScript"%>
<%Option Explicit%>
<%
Dim strEmail
strEmail = Request.Form("Email")
strFrom = "(e-mail address removed)"
strTo = "(e-mail address removed)"
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<title>Mailing Services-Confirmation</title>
</head>
<html>
<body topmargin="0" leftmargin="0" bgcolor="#000000" text="#ffffff"
link="#990033" vlink="#003300" alink="#cc6600">
<form method="POST" action="overstockconf.asp">
<table border="0" cellpadding="0" cellspacing="0" width="650">
<tr>
<td> </td>
<td>Email</td>
<td><%= Request.Form("Email")%></td>
</tr>
</table>
<%
Dim objMail
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = strFrom
objMail.To = strTo
objMail.Subject = "Overstock Confirmation"
StrMessage = strMessage & "Authorizing Person's Email - " &
Request.Form("Email") & vbCrLf
objMail.Body = strMessage
objMail.Send
Set objMail = nothing
%>
</form>
</body>
</html>
Both the second asp page and the email add a comma after the email
address that was entered in the field in the first asp page. Does any
one know how to get rid of it.
I'm a new web developer and have lots of books all over my desk. I've
check news groups, but I still can't seem to figure this one out. I'm
hoping it's a silly little mistake.
Thanks,
Michele