# Login for several users to several pages

**URL:** <https://forum.kirupa.com/t/login-for-several-users-to-several-pages/250642>\
**Category:** programming\
**Created:** [January 31, 2008, 10:46am UTC](https://forum.kirupa.com/t/login-for-several-users-to-several-pages/250642 "2008-01-31T10:46:46Z")\
**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:** [January 31, 2008, 10:46am UTC](https://forum.kirupa.com/t/login-for-several-users-to-several-pages/250642/1 "2008-01-31T10:46:46Z")

</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 on a different page.  
Do you know how I have to do it?  
I know how to do it with ASP but not with Flash and also I want to use this tutorial that works and to modify it.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

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

```

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