# Passing variables from Flash to PHP \[form\]

**URL:** <https://forum.kirupa.com/t/passing-variables-from-flash-to-php-form/73037>\
**Category:** flash\
**Created:** [December 12, 2004, 6:38am UTC](https://forum.kirupa.com/t/passing-variables-from-flash-to-php-form/73037 "2004-12-12T06:38:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rockstar](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rockstar](https://forum.kirupa.com/u/Rockstar)\
**Post date:** [December 12, 2004, 6:38am UTC](https://forum.kirupa.com/t/passing-variables-from-flash-to-php-form/73037/1 "2004-12-12T06:38:18Z")

</div>

Hi

I have a question.  
How do you pass variables from flash to php?  
What I wanna do is, get the username and password entered in this form made in flash, when the submit button is hit, it will open and send these variables to login\_processor.php. If the info is put in correctly, it will take them to a different page.

The login\_processor.pgp works for html form, but not for flash. In flash I have two input texts, and I gave them each their own var names.

This code I assigned to my submit and reset button:

submit\_btn.onRelease=function () {  
getURL(“login\_processor”, “\_self”, “POST”);  
}

reset\_btn.onRelease=function () {  
usernameText.text="";  
passwordText.text="";  
}

stop();

this script is not working, even though you put in the right info, it will take you to login\_processor.php and that’s it, you’re not even logged in.

any ideas?

thanks alot
