|
spcafc -> RE: Can somebody check this ASP code? (5/20/2004 12:16:32)
|
double checked that quote mark and it WAS there so I removed it. Here is the code as it stands now: <% Function ParseBody (strText) strText = Replace (strText, Chr (13), "<br>") ParseBody - strText End Function Dim myConnString Dim myConnection Dim mySQL myConnString = Application("groupinfo_ConnectionString") Set myConnection = Server.CreateObject("ADODB.Connection") myConnection.Open myConnString mySQL= "INSERT INTO FormResults" mySQL= mySQL & "([Phone],Website,City,PhysicalAddress2,[Name],MailingAddress2,County,PhysicalCity,Fax,Email,PhysicalAddress,PhysicalZipCode,GovtDept,GovtHead,ZipCode,MailingAddress) " mySQL= mySQL & "VALUES ('" & Request.Form("Phone") & "'," mySQL= mySQL & "'"&Request.Form("Website")&"'," mySQL= mySQL & "'"&Request.Form("City")&"'," mySQL= mySQL & "'"&Request.Form("PhysicalAddress2")&"'," mySQL= mySQL & "'"&Request.Form("Name")&"'," mySQL= mySQL & "'"&Request.Form("MailingAddress2")&"'," mySQL= mySQL & "'"&Request.Form("County")&"'," mySQL= mySQL & "'"&Request.Form("PhysicalCity")&"'," mySQL= mySQL & "'"&Request.Form("Fax")&"'," mySQL= mySQL & "'"&Request.Form("Email")&"'," mySQL= mySQL & "'"&Request.Form("PhysicalAddress")&"'," mySQL= mySQL & "'"&Request.Form("PhysicalZipCode")&"'," mySQL= mySQL & "'"&Request.Form("GovtDept")&"'," mySQL= mySQL & "'"&Request.Form("GovtHead")&"'," mySQL= mySQL & "'"&Request.Form("ZipCode")&"'," mySQL= mySQL & "'"&Request.Form("MailingAddress")&"')" response.write mySQL response.end myConnection.Execute mySQL myConnection.Close Set myConnection = Nothing Dim myCDONTSMail Dim strFrom Dim strTo Dim strSubject DimstrBody strFrom="spcafc@mindspring.com" strTo=Request.Form("MailingInformation_Email") strSubject = "Thank You! NC Animal Welfare Directory Submission" strBody="Thank you for sending your information - it will be added to/updated in our database." & Chr(13) strBody = strBody & "Please remember the following:" & Chr(13) strBody = strBody & "If you are a 501(c)3 organization please send a copy of the FIRST page of your IRS certification letter" & Chr(13) strBody = strBody & "OR" & Chr(13) strBody = strBody & "if NOT a 501(c)3 than a letter from your main vet on their letterhead." & Chr(13) strBody = strBody & "Send the info to:" & Chr(13) strBody = strBody & "SPCA of Franklin County" & Chr(13) strBody = strBody & "105 MILL CREEK DRIVE" & Chr(13) strBody = strBody & "YOUNGSVILLE NC 27596" & Chr(13) strBody = strBody & "OR" strBody = strBody & "you may send it as an attachment to:" & Chr(13) strBody = strBody & "spcafc@mindspring.com" & Chr(13) strBody = strBody & "Thank you again for helping NC's animals!" & Chr(13) strBody = strBody & "Rebecca Rodgers" & Chr(13) strBody = strBody & "President" & Chr(13) strBody = strBody & "SPCA of Franklin County" & Chr(13) strBody = strBody & "North Carolina" myCDONTSMail.Send strFrom,strSubject,StrBody Set myCDONTSMail = Nothing %> This is the response from the page: INSERT INTO FormResults([Phone],Website,City,PhysicalAddress2,[Name],MailingAddress2,County,PhysicalCity,Fax,Email,PhysicalAddress,PhysicalZipCode,GovtDept,GovtHead,ZipCode,MailingAddress) VALUES ('0PHONE','WEBSITE','CITY','PHYSICALADDRESS2','NAME','MAILINGADDRESS2','COUNTY','PHYSICALCITY','0FAX','EMAIL','PHYSICALADDRESS','0PHYSZIPCODE','GOVTDEPT','GOVTHEAD','0ZIPCODE','MAILINGADDRESS')
|
|
|
|