# Problem with Flash UNDEFINED Variables

**URL:** <https://forum.kirupa.com/t/problem-with-flash-undefined-variables/320790>\
**Category:** flash\
**Created:** [April 1, 2011, 1:25pm UTC](https://forum.kirupa.com/t/problem-with-flash-undefined-variables/320790 "2011-04-01T13:25:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hawke58](https://avatars.discourse-cdn.com/v4/letter/h/67e7ee/32.png) [@hawke58](https://forum.kirupa.com/u/hawke58)\
**Post date:** [April 1, 2011, 1:25pm UTC](https://forum.kirupa.com/t/problem-with-flash-undefined-variables/320790/1 "2011-04-01T13:25:58Z")

</div>

hello- i’m using Flash CS3 to pass simple contact form variables to an ASP form. the problem is the variables don’t leave flash - my trace shows ‘0’ or undefined.

can anyone tell me what is wrong with my code below? I don’t really know what i’m doing wrong…

it is a movie clip within movie clip, button on form

Form with 4 fields all set to InputText…

txtName (variable - **Name** )  
txtEmail (variable - **Email** )  
txtHomeTel (variable - **HomeTel** )  
txtInquiry (variable - **Inquiry** )

“ **Submit** ” button on release action

on (release) {

variables = new LoadVars();

variables.EmailFrom=“KM Creative Dreamer website”;  
[variables.EmailTo="kristine@kmcreativedreamer.com](mailto:variables.EmailTo=%22kristine@kmcreativedreamer.com)";  
variables.subject=“Web Inquiry”;  
variables.redirect=“thankyou.html”;

variables.Name=txtName.text;  
variables.Email=Email;  
variables.HomeTel=HomeTel;  
variables.Comments=Inquiry;

variables.send(“[http://www.kmcreativedreamer.com/\_gdForm/webformmailer.asp](http://www.kmcreativedreamer.com/_gdForm/webformmailer.asp)”, 0, variables=“POST”);

trace(variables.Name.value);

//getURL(“[http://www.kmcreativedreamer.com/\_gdForm/webformmailer.asp](http://www.kmcreativedreamer.com/_gdForm/webformmailer.asp)”, method=“POST”);

}

Thank you!
