# Can anyone figure this out?

**URL:** <https://forum.kirupa.com/t/can-anyone-figure-this-out/16684>\
**Category:** Uncategorized\
**Created:** [March 27, 2003, 1:11pm UTC](https://forum.kirupa.com/t/can-anyone-figure-this-out/16684 "2003-03-27T13:11:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivcho](https://avatars.discourse-cdn.com/v4/letter/i/838e76/32.png) [@ivcho](https://forum.kirupa.com/u/ivcho)\
**Post date:** [March 27, 2003, 1:11pm UTC](https://forum.kirupa.com/t/can-anyone-figure-this-out/16684/1 "2003-03-27T13:11:13Z")

</div>

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.

Thank you kindly in advance

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 27, 2003, 1:21pm UTC](https://forum.kirupa.com/t/can-anyone-figure-this-out/16684/2 "2003-03-27T13:21:55Z")

</div>

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

maybe nonsense, just scanned tru quickly…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 27, 2003, 1:23pm UTC](https://forum.kirupa.com/t/can-anyone-figure-this-out/16684/3 "2003-03-27T13:23:42Z")

</div>

ya it’s weird… i was trying different things cause I coulnd’t get it to work…

when I trace(\_root.area.getSelectedItem().label) it shows the right value… but when I do

areaofinterest = \_root.area.getSelectedItem().label it sends blank… very very weird ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 27, 2003, 2:05pm UTC](https://forum.kirupa.com/t/can-anyone-figure-this-out/16684/4 "2003-03-27T14:05:55Z")

</div>

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.

Thank you
