Hello
I have an untidy Flash site here:
When the online form is completed, the Webmaster receives the form details and that, at least seems to be working.
I have two asp files which do the work:
<%
Dim fullname,email,subject,country,message
if Request.Form("Submit") <> "" then
fullname = Request.Form("fullname")
email = Request.Form("email")
subject = Request.Form("subject")
country = Request.Form("country")
message = Request.Form("message")
Server.Transfer "welcomeFlash.asp"
End if
%>
The welcomeFlash.asp file is supposed to store the details in a database (but doesn't), and HTML format the email sent to the Webmaster (but doesn't).
I do get an error message in welcomeFlash.asp:
Type mismatch: 'ChkString'
/myFlash/welcomeFlash.asp, line 11
but it does not seem to hinder the email being sent. This is the code I have (copied and pasted from welcomeFlash.asp) and to which the error points:
<%
' Declare variables
Dim fullname, email, subject,country, message
'Get form field values from flashEmailTest file
fullname = ChkString(Request.Form("fullname"))
email = ChkString(Request.Form("email"))
email = ChkString(Request.Form("subject"))
country = ChkString(Request.Form("country"))
message = ChkString(Request.Form("message"))
'Open MS Access database, store form field values, and close
set conn=Server.CreateObject("ADODB.Connection")
conn.Open "driver={Microsoft Access Driver (*.mdb)};DBQ=D:\Flashform.mdb;"
set rs = Server.CreateObject("ADODB.recordset")
SQL="INSERT INTO users (fullname, email, country, message) VALUES ('" & _
fullname & "', '" & email & "','" & subject & "', '" & country & "', '" & message & "')"
rs.Open SQL, conn
Set rs=Nothing
conn.Close
Set conn=Nothing
%>
Is there anything obviously wrong?
Thank you for your time.
Cheers
Steve
I have an untidy Flash site here:
When the online form is completed, the Webmaster receives the form details and that, at least seems to be working.
I have two asp files which do the work:
<%
Dim fullname,email,subject,country,message
if Request.Form("Submit") <> "" then
fullname = Request.Form("fullname")
email = Request.Form("email")
subject = Request.Form("subject")
country = Request.Form("country")
message = Request.Form("message")
Server.Transfer "welcomeFlash.asp"
End if
%>
The welcomeFlash.asp file is supposed to store the details in a database (but doesn't), and HTML format the email sent to the Webmaster (but doesn't).
I do get an error message in welcomeFlash.asp:
Type mismatch: 'ChkString'
/myFlash/welcomeFlash.asp, line 11
but it does not seem to hinder the email being sent. This is the code I have (copied and pasted from welcomeFlash.asp) and to which the error points:
<%
' Declare variables
Dim fullname, email, subject,country, message
'Get form field values from flashEmailTest file
fullname = ChkString(Request.Form("fullname"))
email = ChkString(Request.Form("email"))
email = ChkString(Request.Form("subject"))
country = ChkString(Request.Form("country"))
message = ChkString(Request.Form("message"))
'Open MS Access database, store form field values, and close
set conn=Server.CreateObject("ADODB.Connection")
conn.Open "driver={Microsoft Access Driver (*.mdb)};DBQ=D:\Flashform.mdb;"
set rs = Server.CreateObject("ADODB.recordset")
SQL="INSERT INTO users (fullname, email, country, message) VALUES ('" & _
fullname & "', '" & email & "','" & subject & "', '" & country & "', '" & message & "')"
rs.Open SQL, conn
Set rs=Nothing
conn.Close
Set conn=Nothing
%>
Is there anything obviously wrong?
Thank you for your time.
Cheers
Steve