# Flash Forms and hidden fields

**URL:** <https://forum.kirupa.com/t/flash-forms-and-hidden-fields/182382>\
**Category:** flash\
**Created:** [March 17, 2006, 5:09pm UTC](https://forum.kirupa.com/t/flash-forms-and-hidden-fields/182382 "2006-03-17T17:09:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alemieux34](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@alemieux34](https://forum.kirupa.com/u/alemieux34)\
**Post date:** [March 17, 2006, 5:09pm UTC](https://forum.kirupa.com/t/flash-forms-and-hidden-fields/182382/1 "2006-03-17T17:09:54Z")

</div>

I’ve built a form in Flash that’s a basic username and password form. I’m trying to send two additional variables with that form, simulating hidden form fields in HTML.

I tried creating a variable to hold the string and then pass it through the function like this:

[AS] var StartURL:String= “/cgi-win/auth/$campredir.dll/MainPage”;

// Provide custom form submission function.  
function submitForm () {  
sender.UserID = userName\_txt.text;  
sender.Password = password\_txt.text;  
sender.StartURL = StartURL;  
sender.send("/cgi-win/$login.dll", “POST”);  
}

[/AS]

Is this possible? What am I doing wrong?
