you can pass variables between pages in a number of ways, of
which FORM
and URL scopes are most common. Other possible ways include
SESSION,
APPLICATION and CLIENT scopes, as well as cookies, and you
could also
write the vars to a file on the server and have the other
page read them
from it...
in your particular case, i would probably use SESSION or FORM
scope
variables:
on the report page, which presumably receives all selected
criteria from
the criteria.cfm page as a form submission (= FORM scope),
populate a
scructure inside the SESSION scope with the received
variables. then on
the excel.cfm page you can access that structure and retrieve
the vars
to use in the queries. alternatively, instead of creating a
SESSION
scope structure, re-create a form from the criteria.cfm page
setting all
fields to type=hidden, and on clicking a "save as excel
file", or
whatever link users have to click to get the excel report,
submit this
hidden form to excel.cfm page. on that page get the vars out
of FORM
scope and use in your queries.
--
Azadi Saryev
Sabai-dee.com
Vientiane, Laos
http://www.sabai-dee.com