# Tutorial Login using Flash, php and MySQL

**URL:** <https://forum.kirupa.com/t/tutorial-login-using-flash-php-and-mysql/250977>\
**Category:** Uncategorized\
**Created:** [February 4, 2008, 9:00am UTC](https://forum.kirupa.com/t/tutorial-login-using-flash-php-and-mysql/250977 "2008-02-04T09:00:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![placca](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@placca](https://forum.kirupa.com/u/placca)\
**Post date:** [February 4, 2008, 9:00am UTC](https://forum.kirupa.com/t/tutorial-login-using-flash-php-and-mysql/250977/1 "2008-02-04T09:00:58Z")

</div>

Hi,I download tutorial Login using Flash, php and MySQL and it runs very well. It’s amazing!!!  
But…  
I want that identified users go each one to different pages.  
Do you know how I have to do it?  
I know how to do it with ASP but not with Flash. Can you do it modifing this tutorial?  
With ASP code I put 3 fields in database: user, password and page (number of the page for each user).  
Then I put this code in page “control.asp”:

```auto

<% 
ssql = "select * from web where user='" & request.form("user") & "' and password='" & request.form("pass") & "'" 
 
Set Conn = Server.CreateObject("ADODB.Connection") 
Conn.Open "my_bd" 
set RS = Conn.Execute(sSQL) 
 
if (not RS.eof) then 
  session("autentificado") = "si" 
response.redirect(rs("page")&".asp")
else 
  response.redirect "index.asp?errorusuario=si" 
end if 
 
Conn.Close 
%>

```

Anybody knows how can I do it with Flash?  
Thank you very much!!!
