Search This Blog

Friday, February 18, 2011

Flash Builder, Flex, PHP + MySQL login/authentication page

This example is based on corlan’s post. I simplified it and added connection to MySQL and password encryption in MD5.

Basically this examples shows how easily we can implement logging in Flash Builder / flex. GUI is displayed in flash and it connects to PHP server that stores passwords in MySQL database. Passwords are encrypted using MD5.

 

Login

 

Below you can find Flash Builder project, scripts in PHP to put in your Apache WWW directory in location: localhost/user_auth. The third file is MySQL database export.

http://sites.google.com/site/bkosarzyckiaboutme/User_auth_FlashBuilderProject.rar

http://sites.google.com/site/bkosarzyckiaboutme/user_auth_PHP_Scripts_PutInApacheDirectory.rar

http://sites.google.com/site/bkosarzyckiaboutme/wirtlab.sql.zip

You can easily encrypt your passwords in MD5 thanks to this site:
http://www.adamek.biz/md5-generator.php

More info on Flex HttpService can be found here:
http://www.flexafterdark.com/docs/Flex-HttpService

5 comments:

  1. Thank you very much.

    ReplyDelete
  2. thanks great project. what is the code to navigate to the next webpage after a valid user name and password is entered. Thanks

    ReplyDelete
  3. photo tagging code with demo with database
    http://www.lessonwithdemo.com/205/ajax/photo-tagging-like-facebook-without-page-refresh-with-ajax-without-jquery.php/

    ReplyDelete
  4. You share very important things. Very great post. I am waiting for your next post. To know about oracle sql assignment help click here

    ReplyDelete

If you like this post, please leave a comment :)