MiniVend Akopia Services

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

Re: How to trigger on a CGI arg upon catalog entry?



******    message to minivend-users from Dan Busarow <dan@dpcsys.com>     ******

On Mon, 10 May 1999, Joe Mazz wrote:
> I have read the Minivend docs many times, but I can't figure out how the optional input
> "arg" works. The problem is simply that I want to trigger different  discounts
> and display options by conditioning on the value of one or more CGI parameters
> (such as a user name and password) sent to the catalog entry link program.
> Since the CGI link program uses a session ID and an optional  "arg" separated by
> a semi-colon, can one add standard CGI name/value pairs after these in a GET
> as follows: <A HREF="http://mysite.com/cgi-bin/cat/index?discount=5&password=HGF23s">,
> where cat is my link program, and index is the entry catalog page,

I don't know the answer but you should be able to find out easily.  Create
a test page, test.html :), containing

<h2>
[perl]
$arg = tag_data('session', 'arg');
return $arg;
[/perl]
</h2>

And see what the page displayes when you pass it various arguments.
My *guess* is that you'll need to decode the arg/value pairs yourself.

Dan
-- 
 Dan Busarow                                                  949 443 4172
 Dana Point Communications, Inc.                            dan@dpcsys.com
 Dana Point, California  83 09 EF 59 E0 11 89 B4   8D 09 DB FD E1 DD 0C 82

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