How to make a login/password entrance with flash & asp
by Carlos Pinho, January 31st, 2007
  • Share
  • Share

Did you never want to have a login entrance to your flash site? Here it is the ASP code you need to communicate from flash to the access database.

<%@LANGUAGE=”VBSCRIPT” CODEPAGE=”1252″%>
<%
‘open the database——————————————————
set conn=server.createobject(“adodb.connection”)
cnpath=”DBQ=” & server.mappath(“mydb.mdb”)
conn.open “DRIVER={Microsoft Access Driver (*.mdb)}; ” & cnpath
‘Vars from Flash———————————
login = trim(request(“login”))
senha = trim(request(“senha”))
‘Checks login and password values ————————————–
SQL = “SELECT * FROM LOGIN ”
SQL = SQL & “WHERE login =’”& login &”‘ AND senha =’”& senha &”‘”
Set busca = conn.Execute(SQL)
if not busca.eof then
response.write “ok=true”
else
response.write “ok=false”
end if
‘close conn —————————————————–
set busca = nothing
conn.close
%>

For this issue you can use the code of my previous post regarding asp scripts to use with flash.

Hope you enjoy.

Tags: , , , , , , , , , , ,

Copy and Paste the code below
Email and IM
Websites
Forums
Get This

No Responses to “How to make a login/password entrance with flash & asp”

  1. Tyler Says:

    Thats cool im tryin to get a longon in using micrsoft access thanx for the help

  2. Marie Says:

    Thanks for posting up your work, it’ll be really useful for me as well as a few other people I know.

  3. GrimTweaker Says:

    This is great finally got flash to work with asp, thanks a bunch.

Let leave a Comments for this post.