# Flash and PHP

**URL:** https://forum.kirupa.com/t/flash-and-php/226260
**Category:** Uncategorized
**Created:** [May 19, 2007, 12:14pm UTC](https://forum.kirupa.com/t/flash-and-php/226260 "2007-05-19T12:14:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Macsy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/macsy/32/3238_2.png) [@Macsy](https://forum.kirupa.com/u/Macsy)
#### Post date: [May 19, 2007, 12:14pm UTC](https://forum.kirupa.com/t/flash-and-php/226260/1 "2007-05-19T12:14:27Z")

</div>

Hi. I tried to load variables from PHP into FLASH. But succses? No.  
This is my code follow by some easy questions 🙂  
[AS]  
var loadVar = new LoadVars ();

submit.onPress = function ()  
{  
loadVar.user = userinput.text;  
loadVar.pass = passinput.text;  
loadVar.send (“newlogin.php”,0,“POST”);  
loadVar.load (“newlogin.php”);  
};  
loadVar.onLoad = function ()  
{  
TB.text = loadVar.loggedIn;  
};  
[/AS]

user- and passinput are two textboxes, same with TB.

Here are my questions:

When i press the submit button i get redirected to the php file, newlogin.php.  
This makes me unable to check if im loggedIn or not. Any tips? How do i use sendAndLoad ? It wont work for me!
