G
Greg Maxey
PC,
Thanks for hanging in there. I think it is getting close. I unchecked the
friend error and now recieve a report:
Microsoft VBScript compilation error '800a0400'
Expected statement
/Response.asp, line 5
option explicit
^I tried using both email methods and I get the same result.
Here is the code from the User_Feedback_Testing.asp feedback page:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>User FeedBack Testing</title>
<style>
<!--
A:active {COLOR: #993300}
A:visited {COLOR: #993300}
..internal {border-styleutset; border-width:4px; color: #000000;
background: #CAB733; width: 120px; height: 24px}
a:visited.internal {color: #eee; }
a:hover.internal {border-styleutset; border-width:4px;
ackground:#AA9A2B; }
..internalBlock {width: 120px;height: 24px;text-align: center;}
table.MsoNormalTable
{mso-style-parent:"";
font-size:10.0pt;
font-family:"Times New Roman";
}
-->
</style>
<meta name="Microsoft Theme" content="expeditn 1011, default">
<meta name="Microsoft Border" content="t, default">
</head>
<body>
<p></p>
<p></p>
<p align="center"> <p align="center"><font size="6">I Appreciate Your
Feedback</font><p>
Please take a moment ot tell me what you think about this web site and if
you find the Word tips useful. All comments, suggestions, and
don't forget "donations" are welcome.
<hr size="2" noshade>
<blockquote>
<table width="542" border="0" id="table1">
<tr>
<td>
<blockquote>
<blockquote>
<form method="POST" action="Response.asp">
<p align="left"><strong>What is the nature of your comments?</strong>
<dl>
<dd>
<p align="left">
<input type="radio" name="MessageType"
value="Problem">Problem/Bug
<br>
<input type="radio" checked name="MessageType"
value="Suggestion">Suggestion
<br>
<input type="radio" name="MessageType" value="Thanks!">Note of
thanks <br>
<input type="radio" name="MessageType" value="Other">Other
</dd>
</dl>
<p align="left"><strong>What about this site do you want to comment
on?</strong><dl>
<dd>
<p align="left"><select name="Subject" size="1">
<option>Web Site General</option>
<option selected>Word Tips</option>
<option>Odds & Ends</option>
<option>Donations</option>
<option>(Other)</option></select> Other:
<input type="text" size="41" maxlength="256" name="SubjectOther"></dd>
</dl>
<p align="left"><strong>Enter your comments in the space provided
below:</strong><dl>
<dd>
<p align="left">
<textarea name="Comments" rows="15" cols="77"></textarea></dd>
</dl>
<p align="left"><strong>How can I get in touch with you:</strong><dl>
<dd>
<table width="486" id="table2">
<tr>
<td align="right">
<p align="left">Name:</td>
<td colspan="2">
<p align="left">
<input type="text" size="55" maxlength="256" name="Username"></td>
</tr>
<tr>
<td align="right">
<p align="left">E-mail:</td>
<td colspan="2">
<p align="left">
<input type="text" size="55" maxlength="256" name="UserEmail"></td>
</tr>
<tr>
<td>
<p align="left"></td>
<td valign="top" width="5">
<p align="left">
<input type="checkbox" name="ContactRequested" value="Yes"></td>
<td valign="top">
<p align="left">Please contact me regarding this matter.</td>
</tr>
</table></dd>
</dl>
<div align="center">
<input type="submit" value="Send" name="B1">
<input type="reset" value="Clear" name="B2"></form>
</blockquote>
</blockquote>
</td>
</tr>
</table>
</blockquote>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd0" value="_s-xclick">
<p align="center">
<input type="image"
src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0"
name="submit0" alt="Make payments with PayPal - it's fast, free and
secure!">
<input type="hidden" name="encrypted0" value="-----BEGIN
PKCS7-----MIIG7QYJKoZIhvcNAQcEoIIG3jCCBtoCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCOQoD6ZLVLUWWhzQEP0fKk/zig2snv7ml5Zo8QEzSXB4yWCw4+oBcK5NTqQq3YO2/vuPHZfBtEEK7AwJVWgyPDKnxHgieP1XRKppZQxP6/Ln1QQw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FAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDUwMzE2MjEwNDM2WjAjBgkqhkiG9w0BCQQxFgQULWjdnK1B3gYnjVWHlNYnhP4fUnYwDQYJKoZIhvcNAQEBBQAEgYCs25Nn9HBOV5g+NBNdH7dtFR3Og/y9C5uJXgpjwpbje+4myHoXtH0wZwdQGZ8pJ/daqlQPx/260HIdp2dVVoxILs8vLh1XOmK9Y3q2oE/fXx7xaIiW1KRzg33mJaqFDrTS3WzRZyK9QsxL6bHgywO0Dw4JFRyliXUjPYXnCvFWMw==-----END
PKCS7-----
">
</p>
</form></body>
</html>
Here is the code from the Response page:
<html>
<body>
<%@ Language = VBscript %>
'<% option explicit %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;charset=windows-1252">
<title>feedback response</title>
</head>
<body>
<%
Dim MessageType, Subject, SubjectOther, Comments
Dim Username, UserEmail, ContactRequested
Dim MyBody, Mymail
'grab data from the form
MessageType= Request.Form("MessageType")
Subject= Request.Form("Subject")
SubjectOther= Request.Form("SubjectOther")
Comments= Request.Form("Comments")
Username= Request.Form("Username")
UserEmail= Request.Form("UserEmail")
ContactRequested= Request.Form("ContactRequested")
%>
<p> </p>
<p>Thank you for your feedback. Your feeback was:</p>
<p>
<b>Message Type:</b> <%= MessageType %> <br>
<b>Subject:</b> <%= Subject%> <br>
<b>Subject Other:</b> <%=SubjectOther %> <br>
<b>Comments=</b> <%= Comments%> <br>
<b>Your Name:</b> <%= Username%> <br>
<b>Your Email:</b> <%= UserEmail%> <br>
<b>Contact Requested:</b> <%=ContactRequested %> <br>
</p>
<%
'create the email and send it
'Set Mymail = CreateObject("CDONTS.NewMail") 'for CDONTS
Set myMail=CreateObject("CDO.Message") 'for CDO
Mymail.From= UserEmail
Mymail.To= "(e-mail address removed)" 'change to your email
Mymail.Subject= "Website Comments from " & Username
MyBody = "Comments from the web site." & vbCrLf & vbCrLf
MyBody = MyBody & "Comments: " & Comments & vbCrLf & vbCrLf
MyBody = MyBody & "Username: " & Username & vbCrLf & vbCrLf
MyBody = MyBody & "UserEmail: " & UserEmail & vbCrLf & vbCrLf
MyBody = MyBody & "ContactRequested: " & ContactRequested & vbCrLf
'Mymail.Body= MyBody 'for CDONTS
myMail.TextBody= MyBody 'for CDO
Mymail.Send
set Mymail =nothing
%>
</body>
</html>
The User_Feedback_Testing.asp does not show up on my menu bar right now to
avoid confusing user. The most recent one is published however.
I am off to my regular day job and will wait further instructions from you.
You have been a great help plus I like you sense of humor.
Thanks for hanging in there. I think it is getting close. I unchecked the
friend error and now recieve a report:
Microsoft VBScript compilation error '800a0400'
Expected statement
/Response.asp, line 5
option explicit
^I tried using both email methods and I get the same result.
Here is the code from the User_Feedback_Testing.asp feedback page:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>User FeedBack Testing</title>
<style>
<!--
A:active {COLOR: #993300}
A:visited {COLOR: #993300}
..internal {border-styleutset; border-width:4px; color: #000000;
background: #CAB733; width: 120px; height: 24px}
a:visited.internal {color: #eee; }
a:hover.internal {border-styleutset; border-width:4px;
ackground:#AA9A2B; }
..internalBlock {width: 120px;height: 24px;text-align: center;}
table.MsoNormalTable
{mso-style-parent:"";
font-size:10.0pt;
font-family:"Times New Roman";
}
-->
</style>
<meta name="Microsoft Theme" content="expeditn 1011, default">
<meta name="Microsoft Border" content="t, default">
</head>
<body>
<p></p>
<p></p>
<p align="center"> <p align="center"><font size="6">I Appreciate Your
Feedback</font><p>
Please take a moment ot tell me what you think about this web site and if
you find the Word tips useful. All comments, suggestions, and
don't forget "donations" are welcome.
<hr size="2" noshade>
<blockquote>
<table width="542" border="0" id="table1">
<tr>
<td>
<blockquote>
<blockquote>
<form method="POST" action="Response.asp">
<p align="left"><strong>What is the nature of your comments?</strong>
<dl>
<dd>
<p align="left">
<input type="radio" name="MessageType"
value="Problem">Problem/Bug
<br>
<input type="radio" checked name="MessageType"
value="Suggestion">Suggestion
<br>
<input type="radio" name="MessageType" value="Thanks!">Note of
thanks <br>
<input type="radio" name="MessageType" value="Other">Other
</dd>
</dl>
<p align="left"><strong>What about this site do you want to comment
on?</strong><dl>
<dd>
<p align="left"><select name="Subject" size="1">
<option>Web Site General</option>
<option selected>Word Tips</option>
<option>Odds & Ends</option>
<option>Donations</option>
<option>(Other)</option></select> Other:
<input type="text" size="41" maxlength="256" name="SubjectOther"></dd>
</dl>
<p align="left"><strong>Enter your comments in the space provided
below:</strong><dl>
<dd>
<p align="left">
<textarea name="Comments" rows="15" cols="77"></textarea></dd>
</dl>
<p align="left"><strong>How can I get in touch with you:</strong><dl>
<dd>
<table width="486" id="table2">
<tr>
<td align="right">
<p align="left">Name:</td>
<td colspan="2">
<p align="left">
<input type="text" size="55" maxlength="256" name="Username"></td>
</tr>
<tr>
<td align="right">
<p align="left">E-mail:</td>
<td colspan="2">
<p align="left">
<input type="text" size="55" maxlength="256" name="UserEmail"></td>
</tr>
<tr>
<td>
<p align="left"></td>
<td valign="top" width="5">
<p align="left">
<input type="checkbox" name="ContactRequested" value="Yes"></td>
<td valign="top">
<p align="left">Please contact me regarding this matter.</td>
</tr>
</table></dd>
</dl>
<div align="center">
<input type="submit" value="Send" name="B1">
<input type="reset" value="Clear" name="B2"></form>
</blockquote>
</blockquote>
</td>
</tr>
</table>
</blockquote>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd0" value="_s-xclick">
<p align="center">
<input type="image"
src="https://www.paypal.com/en_US/i/btn/x-click-but04.gif" border="0"
name="submit0" alt="Make payments with PayPal - it's fast, free and
secure!">
<input type="hidden" name="encrypted0" value="-----BEGIN
PKCS7-----MIIG7QYJKoZIhvcNAQcEoIIG3jCCBtoCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCOQoD6ZLVLUWWhzQEP0fKk/zig2snv7ml5Zo8QEzSXB4yWCw4+oBcK5NTqQq3YO2/vuPHZfBtEEK7AwJVWgyPDKnxHgieP1XRKppZQxP6/Ln1QQwx/HdTZP6Cj+g21eV+F99Zk9CuISk/0BTJ/Tl5VIIKoaR+MC1AmcEOvPK3kXTELMAkGBSsOAwIaBQAwawYJKoZIhvcNAQcBMBQGCCqGSIb3DQMHBAhyCV/crOf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hkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDUwMzE2MjEwNDM2WjAjBgkqhkiG9w0BCQQxFgQULWjdnK1B3gYnjVWHlNYnhP4fUnYwDQYJKoZIhvcNAQEBBQAEgYCs25Nn9HBOV5g+NBNdH7dtFR3Og/y9C5uJXgpjwpbje+4myHoXtH0wZwdQGZ8pJ/daqlQPx/260HIdp2dVVoxILs8vLh1XOmK9Y3q2oE/fXx7xaIiW1KRzg33mJaqFDrTS3WzRZyK9QsxL6bHgywO0Dw4JFRyliXUjPYXnCvFWMw==-----END
PKCS7-----
">
</p>
</form></body>
</html>
Here is the code from the Response page:
<html>
<body>
<%@ Language = VBscript %>
'<% option explicit %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;charset=windows-1252">
<title>feedback response</title>
</head>
<body>
<%
Dim MessageType, Subject, SubjectOther, Comments
Dim Username, UserEmail, ContactRequested
Dim MyBody, Mymail
'grab data from the form
MessageType= Request.Form("MessageType")
Subject= Request.Form("Subject")
SubjectOther= Request.Form("SubjectOther")
Comments= Request.Form("Comments")
Username= Request.Form("Username")
UserEmail= Request.Form("UserEmail")
ContactRequested= Request.Form("ContactRequested")
%>
<p> </p>
<p>Thank you for your feedback. Your feeback was:</p>
<p>
<b>Message Type:</b> <%= MessageType %> <br>
<b>Subject:</b> <%= Subject%> <br>
<b>Subject Other:</b> <%=SubjectOther %> <br>
<b>Comments=</b> <%= Comments%> <br>
<b>Your Name:</b> <%= Username%> <br>
<b>Your Email:</b> <%= UserEmail%> <br>
<b>Contact Requested:</b> <%=ContactRequested %> <br>
</p>
<%
'create the email and send it
'Set Mymail = CreateObject("CDONTS.NewMail") 'for CDONTS
Set myMail=CreateObject("CDO.Message") 'for CDO
Mymail.From= UserEmail
Mymail.To= "(e-mail address removed)" 'change to your email
Mymail.Subject= "Website Comments from " & Username
MyBody = "Comments from the web site." & vbCrLf & vbCrLf
MyBody = MyBody & "Comments: " & Comments & vbCrLf & vbCrLf
MyBody = MyBody & "Username: " & Username & vbCrLf & vbCrLf
MyBody = MyBody & "UserEmail: " & UserEmail & vbCrLf & vbCrLf
MyBody = MyBody & "ContactRequested: " & ContactRequested & vbCrLf
'Mymail.Body= MyBody 'for CDONTS
myMail.TextBody= MyBody 'for CDO
Mymail.Send
set Mymail =nothing
%>
</body>
</html>
The User_Feedback_Testing.asp does not show up on my menu bar right now to
avoid confusing user. The most recent one is published however.
I am off to my regular day job and will wait further instructions from you.
You have been a great help plus I like you sense of humor.