navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

why doesn't this code work?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> why doesn't this code work?
Page: [1]
 
Eli

 

Posts: 2658
From: ... er ...
Status: offline

 
why doesn't this code work? - 11/9/2001 20:37:00   
anyone any ideas why this asp code doesn't work - comes back with line 22 "Recipents undefined"

<% @LANGUAGE = VBScript %>
<% Option Explicit %>
<html>
<head>
<title>Client Questionaire</title>
</head>
<body bgcolor=#ffffff>
<%
Dim strName, strEmail, strQuery
strName = Trim(Request.Form("ClientName"))
strEmail = Trim(Request.Form("ClientEmail"))
strQuery = Trim(Request.Form("ClientQry"))

If (strName <> "" And strEmail <> "" And strQuery <> "") Then
Dim objMail, aReceipents
Set objMail = Server.CreateObject("CDONTS.NewMail")

objMail.From = "email address here"
objMail.To = strEmail
objMail.Subject = "Your Inquiry " & strName

aRecipients = Array("email address here", _
"email address here")

objMail.BCC = Join(aRecipients, ";")
objMail.Body = strQuery
objMail.Send

Response.Write "Thank you for your comment!"

Set objMail = Nothing
Else
%>

<h1>Enter your review</h1>

<FORM ACTION="<%=Request.ServerVariables("SCRIPT_NAME")%>" METHOD=POST>
<TABLE BORDER=0>
<tr><td>Name</td><td><INPUT TYPE=TEXT NAME="ClientName" VALUE="" SIZE=40></td></tr>
<tr><td>EMail address</td><td><INPUT TYPE=TEXT NAME="ClientEmail" VALUE="" SIZE=40></td></tr>
<tr><td valign=top>Comment/Question</td><td><TEXTAREA NAME="ClientQry" COLS=40 ROWS=10></TEXTAREA></td></tr>
<tr><td></td><td><INPUT TYPE=SUBMIT VALUE="Submit"></td></tr>
</TABLE>
</FORM>

<% End If %>

</body>

</html>

Stuey

 

Posts: 203
From: Dudley West Midlands, United Kingdom
Status: offline

 
RE: why doesn't this code work? - 11/9/2001 20:25:00   
You spelt recipients about three different ways check your spelling you have coders blindness

Stuart

------------------
Stuart Steele
stuart@stuweb.co.uk
http://www.stuweb.co.uk


(in reply to Eli)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> why doesn't this code work?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts