MiniVend Akopia Services

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

Re: [mv] referer



Quoting Alexander Darke (darke@powersites.net):
> 
> At 12:54 PM 10/21/99 -0400, you wrote:
> >Your [data session referer] probably looks something like:
> >
> >    http://www.foo.com/cgi-bin/simple/stuff?abcd;;123
> 
> Actually, it looks like
> 
> http://www.foo.com/suchandsuch.html
> 
> because the enviroment that calls the shopping cart is not inside of 
> minivend, and I need to be able to use the referer, if possible, to get 
> back OUTSIDE minivend.
> 

[bounce href="[data session referer]"]

But MiniVend's Referer is not the same as HTTPs -- it is set once
as a pointer to where the sale came from.

A global UserTag can get the real referer:

(In minivend.cfg)
UserTag referer Routine sub { return $CGI::referer }

Now:

<INPUT TYPE=submit NAME=mv_click VALUE="Return to shopping">

[set Return to shopping]
mv_todo=return
mv_nextpage=rand1
[bounce href="[referer]"]
[/set]

I just picked rand5 because it is a short page in the demo
that requires no parsing. 

-- 
Mike Heins                          http://www.minivend.com/  ___ 
                                    Internet Robotics        |_ _|____
It's a little-known fact            131 Willow Lane, Floor 2  | ||  _ \
that the Y1K problem caused         Oxford, OH  45056         | || |_) |
the Dark Ages. -- unknown           <mikeh@minivend.com>     |___|  _ <
                                    513.523.7621 FAX 7501        |_| \_\


Search for: Match: Format: Sort by: