all groups > flash actionscript > march 2006 >
You're in the

flash actionscript

group:

ASP email form



ASP email form Reggie Bliss
3/26/2006 8:48:28 PM
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.

Re: ASP email form TimSymons
3/27/2006 3:20:53 AM
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

Re: ASP email form The Bliss Factor
3/27/2006 11:43:50 AM
[quoted text, click to view]


AddThis Social Bookmark Button