on (release) {
if (bfname eq “” or blname eq “” or bmessage eq “” or bemail eq “”) {
stop();
} else {
if(_root.purchase.getState()) {
var iwouldliketo = “I would like to Purchase”;
}else {
var iwouldliketo = “I would like to Rent/Lease”;
}
if(_root.signmeupnews.getValue()) {
var signmeupnews = “Sign me up for your newsletter”;
}else {
var signmeupnews = “Dont Sign me up for your newsletter”;
}
var temparea = new String(_root.<b>area</b>.getSelectedItem().label);
var <b>areaofinterest</b> = temparea;
loadVariablesNum(“buyers.php”, 0, “POST”);
gotoAndStop(2);
}
}
for “areaofinterest” no matter what I do it always seems to send a blank back to PHP…
If i put a trace(temparea) instead of assigning it to “areaofinterest” i get the right value when I test within flash… but when I do it on the server it sends a blank… what’s the problem here?.. i just can’t figure it out
Just to clarify
“area” is the name of my combo box which I’m using to get the selected item.
weird scripting…
temparea = _root.area.getSelectedItem().label;
does this work?
why do you need new string?
and var may not get sent coz exists only local to it’s use
I EVEN tried doing a switch and case for each getting getSelectedIndex and then manually assigning areaofinterest to the corresponding value… but even THAT didn’t work…
and on top of everything if I put a default: in my switch that value actually GETS SENT BACK TO PHP properly… this doesn’t make any sense whatsoever to me… the only thing I get out of that is that maybe I get the number the wrong way or something… so instead of assigning to areaofinterest i put a trace for each number… and it worked!!!.. someone please explain this to me… lol
has anyone done a form with Checkboxes and Radio Buttons etc. and sent it to PHP after?..
I’d really love to look at your code to see what’s going on here.