FlashMX,PHP and a login system

I tried the tutorial which is about Flash, PHP and a login system. However i cant get the system to work.

The usercheck.php included in the zip file generated these errors:

**Notice: Undefined index: newUser in C:\Program Files\Apache Group\Apache2\htdocs\Flash\usercheck.php on line 20

Notice: Undefined index: passOne in C:\Program Files\Apache Group\Apache2\htdocs\Flash\usercheck.php on line 21

Notice: Undefined index: passTwo in C:\Program Files\Apache Group\Apache2\htdocs\Flash\usercheck.php on line 22

Notice: Undefined variable: REQUEST_METHOD in C:\Program Files\Apache Group\Apache2\htdocs\Flash\usercheck.php on line 33

Notice: Undefined variable: result in C:\Program Files\Apache Group\Apache2\htdocs\Flash\usercheck.php on line 53**

And when i try to login using the flash it hangs at “Logging in please wait”

Anyone have any idea what went wrong?
Is it because i used FLash Mx 2004 Professional??? or??