# Problem getting flash to talk to php/mysql

**URL:** <https://forum.kirupa.com/t/problem-getting-flash-to-talk-to-php-mysql/239357>\
**Category:** programming\
**Created:** [September 20, 2007, 8:49pm UTC](https://forum.kirupa.com/t/problem-getting-flash-to-talk-to-php-mysql/239357 "2007-09-20T20:49:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobwhosmiles](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bobwhosmiles](https://forum.kirupa.com/u/bobwhosmiles)\
**Post date:** [September 20, 2007, 8:49pm UTC](https://forum.kirupa.com/t/problem-getting-flash-to-talk-to-php-mysql/239357/1 "2007-09-20T20:49:23Z")

</div>

Hi,

Am working on a site that needs a user login. Found the tutorial at: [http://www.kirupa.com/developer/actionscript/authentication.htm](http://www.kirupa.com/developer/actionscript/authentication.htm) and tried to incorporate it into my site design. If I view the php file in my browser I just get a blank screen.

I tried swapping:

```auto

$user=$_POST['user'];
$pass=$_POST['pass'];

```

for

```auto
$user = "myuser";
$pass = "mypassword";

```

(ie. values which I know are in the database) When I do this the browser displays the desired results eg “status=You’re in&checklog=1”

So it seems the problem is with passing the values from flash to PHP. The ActionScript behind the submit button looks like this:

```auto

on (release, keyPress "<Enter>") {
      if (userinput.text != "" && passinput.text != "") {
        status = "Begin Login Process - Wait...";
                loadVariablesNum("newlogin.php", 0, "POST");
    }
    else status = "Please complete your user name and password before clicking submit";
}

```

I’ve double checked that the instance name and var values are right in the .fla

Can anyone offer any help please? I’m tearing my hair out after about 2 days trying to make this work!

Cheers

Bob
