Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Flash 4.0 and database connections |
| From: | Jan Vangrinsven |
| Date: | Tue, 22 Jun 1999 21:55:27 +0100 |
This is not very clear to me. It seems like if the username and
password are not parsed correctly. Can you see them on the next
page, and then check the value's with the values in the database ?
I don't know how ASP works because I use iHTML and I'm having
the same problem showing a variable in the Flash.
> I have just had a chance to try out some new flash 4 features which forces
> me to ask some questions.
>
> background: I am trying to do a Flash-->to ASP (access DB) --> back to
> Flash piece. It is a simple login where you enter a username and
> password. The ASP check the database to see if the user and pword exist
> together
>
> The username field's variable name is nname. The password field's name is
> pword. The user would enter their info (rob, rob for both) and hit a
> button.
>
> the button's script looks like (is there any way to copy the contents of
> the script window???):
>
> on (release)
> set variable: "nname" = nname
> set variable: "pword" = pword
> loadVariables: ("http://209.233.20.147/testweb/toTheDB_flash.asp" ,1,
> vars=POST)
> Go To and Play(10)
> end on
>
> The ASP:
> (see the end of the note for the source to the ASP) It returns (in plain
> text) just: result="?whatever?"
>
> Back in the flash movie, on Frame 10, I have a text field with the
> variable name: result.
>
> It would be my understanding that when the query gets returned the
> returned text value of the result textfield will get displayed.
>
> One problem I am having, which shows itself during testing mode says:
>
> Error opening URL "http://209.233.20.147/testweb/toTheDB_flash.asp": only
> local files supported in Test Movie
>
> I have tried using a relative path (just "toTheDB_flash.asp") where the
> ASP was in the same directory as the .swf and it's html file. I can't
> author from that directory, however. ----- What does local mean? Does it
> have to be in the same directory? - which means working out of the same
> directory where the cgi (ASP in my case) is located
>
> Anyway, my piece does not work. I will put the .fla file on the server
> for you to check out if you are so inclined. It is at:
> http://209.233.20.147/testweb/logon.fla
>
> ----------------THE ASP--------------
> <%@ Language=VBScript %>
> <!-- #include file="Adovbs.inc" -->
> <%
>
> theNickName = Request.Form("nName")
> thePassword = Request.Form("pWord")
>
> cs = Application("cs_ConnectionString")
>
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
> 'see if they are legit by nickname strSQL = "SELECT [nName] FROM chatter
> WHERE [nName] = '" & theNickName & "'" Set rs =
> Server.CreateObject("ADODB.Recordset") rs.Open strSQL, cs, , , adCmdText
> ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 'if
> the user name does not exist If rs.BOF AND rs.EOF Then
> response.write("result=noNickname")
> Else
> strSQL2 = "SELECT [pWord] FROM chatter WHERE [pWord] = '" & thePassword &
> "'"
> Set rs2 = Server.CreateObject("ADODB.Recordset")
> rs2.Open strSQL2, cs, , , adCmdText
> If rs2.BOF AND rs2.EOF Then
> Response.Write("result=noPassword")
> Else
> Response.write("result=yesboth")
> End if
> End If
> %>
>
>
>
>
> ------------------------------------------------------------------------
> To UNSUBSCRIBE send: unsubscribe flasher in the body of an email to
> list-manager
> address must be the same as the one you used to subscribe. For info on
> digest mode send: info flasher to list-manager
>
Jan Vangrinsven
Vaartstraat 67
3000 Leuven
Belgium
Tel: (0032) (016) 29 27 72
--------------------------
Jan
--------------------------
http://www.harras.be
--------------------------
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
Replies
Re: FLASH: Flash 4.0 and database connec, Robert Koberg
Replies
Re: FLASH: Flash 4.0 and database connec, Robert Koberg
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

