[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 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.
>
> 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
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]
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\data session gnum].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