I am new to session variables so the following is probably seem remedial
(though several hours of searching hasn't shed any light on how this is
done).  I am trying to move away from using url variables wherever
possible.  I currently use a pull down which reposts the same page
populating a couple variables used to determine how pictures are
displayed. I would like to replace these url variables with a session
variables.  I have defined session variables in the application.cfm and
I believe properly locked it.  When I dump the session variables
everything appears to be set correctly.

Where I am running into difficulty is how to use a pull down menu to
allow a user to set the session variable to a non-default value the
defaults are session.columns =3 and session.totpics=15.

How would one properly post the session.columns and session.totpics from
this pulldown?

<form name="form1" method="post">

            <select name="menu1" >
                        <option value="">ViewAs</option>

                        <option
value="<cfoutput>#currentPage#?HikeID=#url.hikeid#</cfoutput>

                                                             <cfset
session.columns = "4">

                                                             <cfset
session.totpics = "24">">4x6</option>

            </select>

</form>

Thanks you much, I appreciate it!

John
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to