flash actionscript:
I need help writing the asp file for my email form. I have one made, but when I hit submit on the flash movie, the browser tells me that the method is not allowed. Here are the respective codes: Submit button on flash movie: on (release) { if (!FirstName.length) { EmailStatus = "Please enter your FIRST name."; } else if (!LastName.length) { EmailStatus = "Please enter your LAST name."; } else if (!HomePhone.length) { EmailStatus = "Please enter your HOME PHONE number."; } else if (!WorkPhone.length) { EmailStatus = "Please enter your WORK PHONE number."; } else if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) { EmailStatus = "Please enter a valid E-MAIL"; } else if (!Address.length) { EmailStatus = "Please enter your ADDRESS"; } else if (!City.length) { EmailStatus = "Please enter your CITY"; } else if (!State.length) { EmailStatus = "Please enter your STATE"; } else if (!Zip.length) { EmailStatus = "Please enter your ZIP CODE"; } else { restOfForm(); loadVariablesNum("IMCemail.asp", 0, "POST"); gotoAndPlay(10); } } Here is the asp file (notice all the variables are not in the asp file becasue I was trying to get a few working first): <% @language="VBSCRIPT"%> <% Dim myMail, myBody myBody = "Borrower: "& request.form("FirstName") & request.form("LastName") & vbcrlf myBody = myBody & "Email:" & request.form("Email") & vbcrlf myBody = myBody & "Work Phone:" & request.form("WorkPhone") & vbcrlf myBody = myBody & "Message:" & request.form("ToComments") Set myMail = CreateObject("CDONTS.NewMail") myMail.BodyFormat = 1 myMail.MailFormat = 1 myMail.From = request.form("Email") myMail.To = "getexposed@theblissfactor.com" myMail.Subject = "Information Request" myMail.Body = myBody myMail.Send set myMail=nothing %> Any help is greatly appreciated.
Your function is using the loadVariablesNum function. This is used to load data into Flash, not send it out. You should use the LoadVars.send() or LoadVars.sendandLoad() functions. Tim
[quoted text, click to view] TimSymons wrote: > Your function is using the > > loadVariablesNum > > function. This is used to load data into Flash, not send it out. You should use the LoadVars.send() or LoadVars.sendandLoad() functions. > > Tim > >
Don't see what you're looking for? Try a search.
|