Akopia Akopia Services

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

Re: [mv] Extract Next & Previous URLS with Perl



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

At 08:49 PM 9/27/00 , you wrote:
>******    message to minivend-users from minivend@hq.com.au     ******
>
>Hello Fellow Users,
>We are trying to extract the next and back urls from a search result page.

[snip]

>We are trying to use this code.. to no avail.
>[more-list][set mv_put_session][more][/set][/more-list]

At the top of a page, [set mv_put_session]Yes[/set] will tell MV to retain 
any set values.  If you'd like to put something in a scratch called foobar, 
try [set foobar]whatever[/set]
Now [scratch foobar] will return 'whatever'.

Your perl looks okay.


>[perl arg=values interpolate=1]$var = '[scratch mv_put_session]';
>@lines=split(/\n/,$var);
>
>foreach(@lines){
>   chomp;
>   if (/<A HREF="?(.*)?">(Previous|Next)<\/A>/){
>     $$2=$1;
>   }
>}
>return $Previous;
>return $Next;
>[/perl]
>
>WHY...
>We have a page with many items with quantiy boxes and will then will use 
>the variables to direct the mv_nextpage to place in the  basket and show 
>the next or previous results page instead of a basket contents.
>
>Any help is appreciated.
>
>Regards,
>Geoff
>
>
>-
>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://yamamoto.baits.com
Gary Yamamoto Custom Baits, Inc.                http://www.insideline.net

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