6 Replies Latest reply on Jun 20, 2010 11:35 AM by RealBillyBlue

    How to done a login-check with an ArrayCollection?

    RealBillyBlue

      Hey there,

      I get my userdata via PHP into an ArrayCollection (via automatically generated PHP-Classes by FB).

       

      So I build a login-window, where the user has to type in the emailaddress and the password.

       

      But how can I compare this to my ArrayCollection now?

       

      Does I've to do it with something like for/next for all entries of the AC to find the right one (or not), like:

       

      if AC[x].email = myTextInput.text then doLogin() else x++

       

      (this is just a simple version, to show what I mean!)

       

      Or is there a better/faster way without changing the PHP-request/service?

       

      Thank you!!