# Form variable help

**URL:** <https://forum.kirupa.com/t/form-variable-help/241553>\
**Category:** flash\
**Created:** [October 15, 2007, 3:07pm UTC](https://forum.kirupa.com/t/form-variable-help/241553 "2007-10-15T15:07:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PRSWeb](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@PRSWeb](https://forum.kirupa.com/u/PRSWeb)\
**Post date:** [October 15, 2007, 3:07pm UTC](https://forum.kirupa.com/t/form-variable-help/241553/1 "2007-10-15T15:07:13Z")

</div>

I’m using Flash MX to build a form, and I am having trouble getting variable values to trace.  
I have a combobox that sets an ‘order quantity’ and three input fields that display data on the page (fields for a business card, formatted in the proper ont).  
First, how can I get the value from the combobox? I have given the box the Instance name “qty\_cb”.  
Second, I am using input text fields to collect data, and dynamic text fields to display the data live on the screen. In the case of the email input field, I named the instance ‘enteremail’ and assigned it the variable name 'email. I also have a dynamic text field called ‘emaildisplay’ that I’ve assigned the variable name ‘email’ and that displays what gets typed into the ‘enteremail’ field.  
I need to pass these variables and some other hidden values through to another page. I’ve developed this, and it sets up the name/value pairs I need, but only the hidden variables are defined.  
on (release) {  
cardform = new LoadVars();  
cardform.userid =“XXXXXX”;  
cardform.product = “Business Cards”;  
cardform.price = “.55”;  
cardform.qty = qty\_cb.getValue();  
cardform.email = “”;  
trace(cardform.qty);  
strURL = “[http://ww11.aitsafe.com/cf/add.cfm?userid=](http://ww11.aitsafe.com/cf/add.cfm?userid=)” + cardform.userid + “&price=” + cardform.price + “&product=” + cardform.product + “,” + cardform.yourname + cardform.yourphone + cardform.youremail + “&qty=” + cardform.qty;  
getURL(strURL, “\_self”);  
}

Here’s the file in action: [http://www.prswebdev.com/bcards.php](http://www.prswebdev.com/bcards.php)
