1 Reply Latest reply on May 27, 2008 4:15 PM by ntsiii

    Simple Login system doesn't work (Php-MysQL)

    jvankuijk
      Hi all,
      I'm stuck for a while on a very simple problem i guess...
      I'm making a simple login system via php and a Mysql database however it seems like Flex can't pass it's form data to my PHP file. When i print the Posted username from Flex, it returns null.
      Hope you guys can help me out...
      The Code:


        • 1. Re: Simple Login system doesn't work (Php-MysQL)
          ntsiii Level 3
          1) set HTTPService resultFormat="e4x" unless you know why not.
          2) Don't use lastResult in code, it is intended for binding expressions. pass event into the handler and use event.result in the handler.
          3} Don't use mxml for your request object, it is too hard to debug. Build the request object in AS, where you can verify the parameters have the values you intend to send.
          4) in the result handler, put the result xml into a string and view it:
          public function deTest(event:Event):void {
          var xmlResult:XML = XML(event.result);
          trace(xmlResult.toXMLString());
          Post back when you can see the returned xml.
          Tracy