[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] [3.14-5] scan (one click search) in combination arg
****** message to minivend-users from ".c o r y . t r e s e." <digital@specialty-books.com> ******
Dearest List --
***
Server: Linux / RedHat (sorta ;)
MiniVend: 3.14-5
perl: 5.005_03
***
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 ;)
***
What I have been able to do:
Place the [data session arg] value in scratch space and Recover the argument on
a normal page (both catalog and another page, customer_service.)
This link:
<a href="http://server.com/cgi-bin/store/catalog?;corytrese;">
Pass "corytrese" as an arg to store at server.com
</a>
works fine and I am able to recover the value using a [set] and [scratch] tag
pair.
***
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.)
A strange thing happens then, a copy of my results page (a
differnt minivend html file) is displayed directly below it (on the same page,
not frames.) This could be the result of bad page authoring (but I thought it
might be worth mentioning.)
***
What I might be able to do...
(AKA, pulling at straws ;)
1. use a form to pass the variables, and use perl to pull them out and
construct a re-direct page that puts them to the correct location with the
scratch variable set. This is possible (accourding to msg00630.html in the
mailing list ("Userdb password security" thread)
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?
Anyone have any suggestions?
--
digital@specialty-books.com
800.466.1365-ext223
[head web-human, Specialty Books]
-
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