Travis Coats
05-25-2007, 07:01 PM
Topic: Flash Forms . . . Oh yeah, I am going there.:mad:
This is one of the largest misconstrued topics on the net. I have surfed page after page of useless, non sensual babble. I had, for a "brief" moment today, my flash contact form operable and now I am stumbling through the forests of actionscript looking for the breadcrumbs I had dropped. This was the code that made it work:
var DataSender:LoadVars = new LoadVars();
//code to set main variable with contained variables to bluehost
function sendForm() {
DataSender.sendtoemail = "travis@allinnia.com";
DataSender.Name = form.userName.text;
DataSender.Email = form.userEmail.text;
DataSender.Message = form.userComment.text;
DataSender.Music = form.music.selectedData;
DataSender.Favorite_Track = form.cFavorite.selectedItem.label;
DataSender.sendAndLoad("http://www.bluemail.com/bluemail",DataReciever,"POST");
}
// function that validates form with if statement\\
this.form.submitBtn.onRelease = function() {
if (form.userName.text == "" || form.userComment.text == "" || form.music.selectedData == undefined) {
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
};
This, what in my mind, should be a simple task. Is one of the most painful projects I have undertaken. I was successful for three or four test runs with this same code. This is what bluemailer sent me:
Your BlueMail form has been completed, following are the results:
Field Value
Favorite_Track Dreamscapes
Music undefined
Comments This was a blast
Email allinnia@mac.com
Name Travis Coats
After being in a rut for the last 6 hours as to why it quit, can anyone politely show me an answer. One that is correct and true (not just one...both) PHP was even worse of a nightmare. What makes it worse is that I changed nothing and yet it still isn't working. I am not sure what happened, and Bluehost kindly imparted to me their motto of "we don't support scripting questions" although it is listed in their help ticket selections.:confused:
Any Flash gurus out there wanna help me out?
This is one of the largest misconstrued topics on the net. I have surfed page after page of useless, non sensual babble. I had, for a "brief" moment today, my flash contact form operable and now I am stumbling through the forests of actionscript looking for the breadcrumbs I had dropped. This was the code that made it work:
var DataSender:LoadVars = new LoadVars();
//code to set main variable with contained variables to bluehost
function sendForm() {
DataSender.sendtoemail = "travis@allinnia.com";
DataSender.Name = form.userName.text;
DataSender.Email = form.userEmail.text;
DataSender.Message = form.userComment.text;
DataSender.Music = form.music.selectedData;
DataSender.Favorite_Track = form.cFavorite.selectedItem.label;
DataSender.sendAndLoad("http://www.bluemail.com/bluemail",DataReciever,"POST");
}
// function that validates form with if statement\\
this.form.submitBtn.onRelease = function() {
if (form.userName.text == "" || form.userComment.text == "" || form.music.selectedData == undefined) {
gotoAndStop("error");
} else {
sendForm();
gotoAndStop("correct");
}
};
This, what in my mind, should be a simple task. Is one of the most painful projects I have undertaken. I was successful for three or four test runs with this same code. This is what bluemailer sent me:
Your BlueMail form has been completed, following are the results:
Field Value
Favorite_Track Dreamscapes
Music undefined
Comments This was a blast
Email allinnia@mac.com
Name Travis Coats
After being in a rut for the last 6 hours as to why it quit, can anyone politely show me an answer. One that is correct and true (not just one...both) PHP was even worse of a nightmare. What makes it worse is that I changed nothing and yet it still isn't working. I am not sure what happened, and Bluehost kindly imparted to me their motto of "we don't support scripting questions" although it is listed in their help ticket selections.:confused:
Any Flash gurus out there wanna help me out?