# Flash / php login

**URL:** <https://forum.kirupa.com/t/flash-php-login/177716>\
**Category:** Uncategorized\
**Created:** [February 4, 2006, 3:37pm UTC](https://forum.kirupa.com/t/flash-php-login/177716 "2006-02-04T15:37:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dirksmith](https://avatars.discourse-cdn.com/v4/letter/d/47e85d/32.png) [@dirksmith](https://forum.kirupa.com/u/dirksmith)\
**Post date:** [February 4, 2006, 3:37pm UTC](https://forum.kirupa.com/t/flash-php-login/177716/1 "2006-02-04T15:37:49Z")

</div>

Hi

I’m attempting Freddy Thunders Flash / PHP login tutorial ([http://www.kirupa.com/developer/actionscript/authentication.htm](http://www.kirupa.com/developer/actionscript/authentication.htm)) and I’m having problems getting the Flash part to work.

The MySQL database is connnecting and working fine - with the usercheck sucecssfully uploading names / passwords to the database.

The Flash login .swf is being loaded into level 50 on my site. As I understand that any reference to \_root on a .swf loaded into a level will always reference the root on the ‘mother’ movie (level0), I’ve sought to fix any problems with the path by preceding \_root references with \_level50 – see below.

But this isn’t working.

Any other ideas on what may be the issue??

Thanx

Dirk

stop();  
userinput.restrict=“a-zA-Z0-9”;  
Selection.setFocus(userinput);  
passinput.restrict=“a-zA-Z0-9”;  
status=“Enter your information and submit”;  
this.onEnterFrame = function () {  
if(\_level50\_root.checklog == 1){  
\_level50\_root.gotoAndStop(2);  
}  
if(\_level50\_root.checklog == 2){  
\_level50\_root.gotoAndStop(3);  
}  
}
