[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 "Thompson-Jordan" <Thompson-Jordan@mindspring.com> ******
> -----Original Message-----
>
> ****** 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'm not sure I really understand the question. To pass an arg to a page
you put <a href="[area href="mypage" arg="myarg"]"> on the source page and
[data session arg] of the target page. I wouldn't put a password on the
URL line for all to see. Put it in a scratch variable and then use it on
the target page based on the setting of arg.
Christopher Thompson
>
> 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
>
-
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