Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: passing variables
From: vipin kanwar
Date: Sun, 20 Feb 2000 08:34:44 GMT

Helen,

First of all thanks for responding to my call for help.

Ok.. i did exactly what you told me to do. I created a logintest.asp file
just to check what my flash was passing to the ASP file.

The result was awkward. It showed that flash was passing not the variable
value but just the variable name. Now how did that happen.

I even tried to set variable from within flash before the "get url" just to
make sure that the variable was indeed being sent.. I even checked in the
next frame of my flash file to see if the variables were exactly what i'm
sending and flash displayed my variables correctly.

Here is my complete html code

>>>>>>>>>>>>>>>>>>>>

<%@LANGUAGE=VBScript%>
<% Response.Buffer = TRUE %>
<html><head><title>PCTrack Asset Management Login</title>
<link REL="STYLESHEET" TYPE="text/css" HREF="styles/index.css">
</script></head>

<body style="BACKGROUND-IMAGE: url(Images/blueBack.GIF); BACKGROUND-REPEAT:
repeat-y">

<form action="login.asp" method="post" name="frmLogin">

<table border="0" cellPadding="0" cellSpacing="0" class="loginTable"
style="width: 261px; height: 107px">
<tr>
<td colspan="2"><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=4,0,2,0" width="300" height="200">
<param name=movie value="flash/frmLogin.swf">
<param name=quality value=high>
<embed src="flash/frmLogin.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300"
height="200">
</embed>
</object> </td>
</tr>
</table>
</form>
</body>
</html>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

and here is my logintest.asp script

<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<P>
<% DIM UserID, Password
UserID = Trim(Request.Form("UserID"))
Password = Request.Form("Password")

Response.Write ("Your Username is " + "UserID")


Response.Write ("Your Password is " + "Password") %>

<P>&nbsp;</P>

</BODY>
</HTML>

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


The result was >>>>>>>>>>>>>

Your Username is UserIDYour Password is Password
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Odd??!!!!

Please help again

Regards
Vipin



-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Helen
Triolo
Sent: Sunday, February 20, 2000 12:22 AM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: passing variables


vipin kanwar wrote:
>
> I'm trying to get a log-in form to work through flash and am stuck with
> passing variables to an asp file (login.asp in this case).
>
> The whole login form created in html works just fine. I've replaced the
html
> form with a flash form with the same variable names and given the action
> "get url" using post.
>
> The url is "login.asp" and the window is set to "_self"
>
> Get URL ("login.asp", window="_self", vars=POST)
>
> I keep getting an error from the login.asp file specifying that the
username
> could not be found in the databse. But the same username and password is
> working fine from my html form.
>
> Is there some mistake that i'm making in the above mentioned flash
process??
>
Vipin,
Did you try setting login.asp to just one line:
<% response.write("Username is " + Server.URLEncode("username")) %>
to check and see what's being sent? (I've found this to be a useful way
to see what Flash is sending). I assume since you didn't include a Set
Variables in your code above that you're using a text field to contain
the data you want to pass (in which case of course the name of the text
field has to be exactly the same, case and all, as the database field
name you're checking it against. Alternately, you can do an explicit
Set Variables: "username" = textfieldname, or
Set Variables: "username" = "actualusername"
before the GetURL statement to pass variable username. If you want any
more help, you could post a link to the asp file and/or fla file for us
to look at.

Regards,
Helen
__________________________________________________________________
i-Technica: Innovative Internet Solutions (http://i-Technica.com)
designerati-technica [dot] com
301-424-6037

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World’s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: passing variables, Helen Triolo

Replies
  Re: FLASH: passing variables, Helen Triolo

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]