[ic] coordinated searches including a profile? (or: using scratch variables in a search)
Doug Alcorn
doug@lathi.net
19 Nov 2000 00:16:33 -0500
I have seen two questions about this in the minivend mailing list
archive that went (apparently) unanswered. Basically I have defined a
search profile earlier in the page. I can perform the [area scan...]
if I hard code all the parameters. I can perform the scan if I just
use my profile. I can't scan if I use a profile with any other
condition. Here's what I have:
[seti myprofile]
sf=addl_category
se=[scratch model]
[/seti]
<form action="[area href="scan" arg="
fi=products
st=db
co=yes
mp=myprofile
sf=category
se=batteries"]" method="post">
...
<input type="submit">
</form>
What I get back is from the results page, "No match for 'batteries
MITSG100'" (where MITSG100 is the value of [scratch model]). However,
I do have a product that meets those two criteria. If I do a select
at the mysql prompt I can get the product listed. I know that the
link is being generated correctly. I get
'http://....../scan/fi=products/st=db/co=yes/sf=addl_category/se=MITSG100/sf=category/se=batteries.html'.
In fact, If I code it like this:
<form action="[area href="scan" arg="
fi=products
st=db
co=yes
sf=addl_category
se=MITSG100
sf=category
se=batteries"]" method="post">
It works like a champ! The exact same url is generated. I don't get
what's going on here. Any clues?
--
(__) Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
oo / Unix Hacker
|_/ "It's too late for paradise" (at least in this life)