[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] [3.14-5] scan (one click search) in combination arg
****** message to minivend-users from Dan Busarow <dan@dpcsys.com> ******
On Wed, 31 May 2000, .c o r y . t r e s e. wrote:
> What I Am Trying to do:
>
> I would like to be able to have a LINK from an EXTERNAL site that passes two
> things to my MV deamon.
>
> 1. a search in the "scan" format
> 2. an argument. just one little argument ;)
Cory,
Use this
[comment]
following is special and required for scratch variables
to stick when used on search pages.
[/comment]
[set mv_put_session]Yes[/set]
I just checked and [data session arg] is available in a scan
page.
[ snip ]
> What I have failed to be able to do:
>
> Recover the [data session arg] or get a one click search to work in
> combination. I can get both the one click search and the data recovery to
> work alone, but not in concert.
>
> The link I made looked like this:
>
> <a href="http://server.com/cgi-bin/store/scan/ra=yes?;corytrese;">
> Return all of my products with "cory trese" as an arg
> </a>
>
> When I use this link, I get a "Bad Search Specification" error ( one of my
> /special pages.)
Try a more complete scan,
http://server.com/cgi-bin/store/scan/ra=yes/sf=subcategory/se=1?;corytrese;
[ snip ]
> Thing is, however, that I'd really rather use a link.
>
> 2. Perhaps I could encapsulate both the one argument I want to pass and the
> proposed "mv_searchspec" value into one argument and parse them apart on a
> special page and send the user on her merry way.
>
> Problem with this is that the argument being passed as well as the searchspec
> might interfere with my parsing routine, since I personally do not have control
> over either of the values. Perhaps I would be saved in this situation by
> escaping nasty characters and such. What think thee?
You can have both an mv_searchspec and a [data session arg]. Escaping
both is certainly a good idea if you have no control over their value.
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