PDA

View Full Version : Multiple forms and limiting searches


slipsy
07-01-2004, 07:49 AM
Hi there diggers!,

I havent installed yet because i wanted to find the answer to the following;
Is it possible to have multiple phpdig search forms that are limited to specific directories and dynamic urls?

For example I want to be able to ONLY search /news/mediarelease.php?id=MYID
with one form and then only search
/reports/mypdfs
with a another form.

Obviously you have to installand spider the site first.I read the documentation and scanned the forums but couldnt type well enough or no one has asked this before.{unlikely}
cheers
slipsy

vinyl-junkie
07-01-2004, 05:19 PM
Welcome to the forum. slipsy. :D

Why not just use a drop-down box for the directory choice? To get a sense of how to do that, I'd suggest further reading here (http://www.phpdig.net/showthread.php?s=&threadid=363&highlight=directory) and here (http://www.phpdig.net/showthread.php?s=&threadid=839&highlight=every+page). :)

slipsy
07-06-2004, 05:04 AM
Thanks for the welcome!

Have it installed and will be replacing cgi search script soon.

However, I still have some questions not answered by the very helpful links you posted.

I have understood creating a custom form to search only specific directories and sites by passing hidden vars to phpdig.

But what happens is that when you go to search again, you are searching site wide.
What i want to do is use php dig to provide directory specific searching that shows results with a search form that will still use the specific directory criteria I supply.

Does this make sense?

slipsy

Charter
07-06-2004, 05:35 AM
http://www.phpdig.net/showthread.php?s=&threadid=580 (just mod to fit what you want) or check out 1.8.1 alpha (link from home page by dancing chicken thing)