Flasher Archive

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


Subject: RE: FLASH: Criteria Search ASP in Flash 4.
From: Roxanne Tuton
Date: Mon, 24 Jul 2000 05:22:26 +0100

Ruben,

you should set your ASP querystring to something like this:

<%
height=request.form("height")
Set db = Server.CreateObject("ADODB.Connection")
db.open "DSN=YourDB;uid=sjeppesen;pwd=leedle"
Set rs=db.execute("SELECT Height from YourTableWhereTheDataIs WHERE
height="&height)
Do until rs.eof%>&<%= rs(0) %><%
rs.movenext
loop
%>

That should pull only the items from the table that meet height = height.
Height should be defined from a variable passed from your flash movie. You
can call this script with:

Load Variables ("vars.asp", 0, vars=POST)

The variable "height" would need to be set somewhere in your flash movie.
Sometimes, passing the variables with "POST" tends to be too slow for the
flash movie. In that case, send using "GET" and then in the ASP script the
first line would be:
height=request.querystring("height")
instead of:
height=request.form("height")

Also, the ASP script I wrotew above is if you are passing a number. If you
are passing a string to search with the querystring would look like:

Set rs=db.execute("SELECT Height from YourTableWhereTheDataIs WHERE height
like '"&height&"'")

Hope that helps. I haven't tested all of the scripts but I do this all of
the time so it should work.

Scott Jeppesen
Programmer\Designer
http://www.FlashPros.com

-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Ruben
McDavid
Sent: Sunday, July 23, 2000 3:44 PM
To: flasheratchinwag [dot] com
Subject: FLASH: Criteria Search ASP in Flash 4.


I'm searching for a ASP script that would let me search in Flash and select
variables from the database. Say, I want to search for height = 6 ft and
Flash
will return all the names who are 6 ft in the database. Has someone written
an
example or at least let me read a simple ASP script so that I can understand
the dynamics of passing and loading variables for selective criteria search?
Most of the examples I have seen display the entire database. Thanks for
reading this note. Ruben.

____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 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(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 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
  FLASH: Criteria Search ASP in Flash 4., Ruben McDavid

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