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.
All the time it says the password is wrong.
I am new to Flex so I don't know whats wrong.
Thanks,
Daniel
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
