FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Flex + PHP login





DanielXP
Im working on Flex 2 and im trying to make it work with my login system.

This is the code I have on Flex already.

Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="userRequest.send()" borderStyle="solid">

   <mx:HTTPService id="userRequest" url="http://rmb-scripting.com/flexlogin.php" useProxy="false" method="POST">
      <mx:request xmlns="">
         <username>{username.text}</username><password>{password.text}</password>
      </mx:request>
   </mx:HTTPService>
   
   <mx:Panel width="258" height="129" layout="absolute" title="Login" horizontalCenter="0" verticalCenter="0">
      <mx:TextInput id="username" x="70" y="7"/>
      <mx:TextInput id="password" displayAsPassword="true" x="70" y="33"/>
      <mx:Label text="Username:" y="9" x="2"/>
      <mx:Label text="Password:" x="8" y="35"/>
      <mx:Button label="Login" click="userLogin();" x="88" y="63"/>
   </mx:Panel>
   
   
   <mx:Script>
      <![CDATA[         
         private function userLogin():void {
            userRequest.send();
            if(evt.result.loginsuccess == "no")
            {
            mx.controls.Alert.show("Invalid username/password");
            }
         }
      ]]>
   </mx:Script>

</mx:Application>


All the time it says the password is wrong.

I am new to Flex so I don't know whats wrong.

Thanks,
Daniel
Related topics
php login module
PHP login/logout problem
PHP Login Problem
php+mysql password / login screen
php login (with flash)
my first php login w/o database
MSN network php login?
Frih$ on offer for PHP Login System
PHP login script problem
Free php script login / register , GREAT!
PHP Login Sessions & Security with Frihost
Simple PHP Login Script
PHP Login-Script (With Sessions)
Php login
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.