Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] mv_searchspec = scratch in [more-list]



******    message to minivend-users from Ryan Hertz <rhertz@gyb.baits.com>     ******

At 08:13 AM 1/6/2000 , you wrote:
>******    message to minivend-users from Marty Vance 
><mvance@lwm.com>     ******
>
>Ryan Hertz wrote:
>
> > ******    message to minivend-users from Ryan Hertz 
> <rhertz@gyb.baits.com>     ******
> >
> > At 03:07 PM 1/5/2000 , you wrote:
> > >******    message to minivend-users from Marty Vance
> > ><mvance@lwm.com>     ******
> > >
> > >[snip]
> > >
> > >Do scratch variables get reset/undefined each time the [more-list] is
> > >built?  When/why is gnum being deleted?
> >
> > [scratch] only sticks around in the page you're currently visiting, unless
> > you tell minivend to put the stuff into the session.  Check the mailing 
> list.
> >
>
>I looked in the mail list, and found an answer.  Here's my code:
>[new]
>[set mv_put_session]Yes[/set]
>
>         [if type=value term=mv_searchspec op="ne" compare='']
>                 [then]
>                 [perl value interpolate=1] $Safe{'session'}{'gnum'} =
>$Safe{'values'}{'mv_searchspec'}; ''; [/perl]
>                 [/then]
>         [/if]

Oh, I thought you would do something more like:

[set gnum][value mv_searchspec][/set]
[set mv_put_session]yes[/set]

and retrieve with

<IMG SRC="/images/g[scratch gnum].gif">

I believe that you have to set your scratch before you 'put session'.  At 
least, that works for me.  :-)


>But later when I say:
><img src="/images/g[data session gnum].gif" >
>
>I get:
>
><img src="/images/g.gif">
>
>At one point I was getting <img src="/images/g&#92;data session 
>gnum&#93.gif" >
>
>How close am I to getting gnum into the session variables?
>
>Marty Vance
>LiveWire
>mvance@lwm.com
>www.lwm.com
>
>-
>To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list


Ryan Hertz                                              tel  800-645-BAIT
Webmaster                                               fax  520-645-2588
Advertising Director                            http://www.insideline.net
Gary Yamamoto Custom Baits, Inc.            http://www.yamamoto.baits.com

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: