Akopia Akopia Services

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

Re: [mv] session var kept in more-list



******    message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net>     ******

Marty Vance wrote:
> 
> ******    message to minivend-users from Marty Vance <mvance@lwm.com>     ******
> 
> I'm trying to get a variable to carry through when a user clicks on one
> of the links created my the [more] tage in a more-list.  Here's my code:
> 
> [perl values interpolate=1] $Safe{'values'}{'galleryNum'} =
> $Safe{'values'}->{'mv_searchspec'}; '';
> [/perl]
> [set mv_put_session]yes[/set]
> 
> Later, I'm referencing [value galleryNum], but it only has a value on
> the first page.  How do I keep galleryNum around for each page that
> [more] creates?
> 
> Marty Vance
> LiveWire
> mvance@lwm.com
> www.lwm.com

I am not sure. Maybe you lost the value of the mv_searchspec, if you go
to the next page. Maybe this can solve:

[if value mv_searchspec]
[perl values interpolate=1] $Safe{'values'}->{'galleryNum'} =
$Safe{'values'}->{'mv_searchspec'}; '';
[/perl]
[/if]
[set mv_put_session]yes[/set]

I would prefer to use this...

[if value mv_searchspec]
[perl arg=scratch]
$Safe{'scratch'}->{'galleryNum'} = $Safe{'values'}->{'mv_searchspec'}; 
return '';
[/perl]
[set mv_put_session]yes[/set]

or

[if value mv_searchspec]
[perl arg=scratch]
$Safe{'scratch'}->{'galleryNum'} = [value mv_searchspec]; 
return '';
[/perl]
[/if]
[set mv_put_session]yes[/set]

or
[if value mv_searchspec]
[set scratch galleryNum][value mv_searchspec][/set]
[/if]
[set mv_put_session]yes[/set]

and replace [value galleryNum] with [scratch galleryNum].

I would add a line like

Check the value/scratch of galleryNum : [value galleryNum] or [scratch
galleryNum] <BR>

to check the value (did i lost the value or not?)

Good lucks,

Joachim

-- 
-------------Hans-Joachim Leidinger---------------------

-
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: