Could someone please tell me what is wrong with my action script (below)?
I’m not getting any errors from flash, or from my php, but the variables are not being returned to my php, for some reason, and therefor, not being saved to a text file.
I have my submit button on the root level, and all the fields for my form within a movie clip called ‘form’
This is the code on the first frame of my fla
form.loadVariables("jorder.php", 0);
This is the code on the submit button
on (release) {
if (form.soldto eq "") {
_root.Status = "Please enter information into the Sold To field";
} else if (form.markfor eq "") {
_root.Status = "Please enter information into the Mark For field";
} else if (form.shipto eq "") {
_root.Status = "Please enter information into the Ship To field";
} else if (form.email eq "") {
_root.Status = "Please enter Your Email";
} else if (form.cpo eq "") {
_root.Status = "Please enter Your Customer PO";
} else if (form.tseq eq "(input the colors and the order you'd like them to appear in, for your trim selection here)") {
_root.Status = "Please enter Your Trim Sequence";
} else {
// getting values from combo boxes and converting them
// to variables to be sent to the php
vjstyle=form.jstyle.selectedItem;
vbcolor=form.bcolor.selectedItem;
vslc=form.slc.selectedItem;
//there are lots more of these...but for sake of length, I cut them out.
// submitting or so i thought...
Submit = "Yes";
form.sendAndLoad ("jorder.php", 0, "POST");
_root.Status = "Your selections have been submitted. Thank you";
}
}
if you need to see my original fla file, you can download it from my web space, here. (please excuse the messy stage…i’m trying to figure this out before i make it look good…)
I’ve been trying to figure this out for a long time. I’ve read lots of threads, many tutorials, and yes I have read the help files in Flash and on Macromedia’s site. I’m new at action script and I just don’t get this…so please, could someone tell me what I’m doing wrong?
Thank you