| Author |
Topic Search Topic Options
|
wolfie
Groupie
Joined: 18 November 2002
Location: United Kingdom
Status: Offline
Points: 64
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 March 2005 at 4:50pm |
|
Well, had a look around a few script sites and they works mostly on
files. The flat file doesn't work with any that I tried. They return
the default page and not the querystring...
Could it be I am asking too much here?
|
Wolfie--[ WolfWeb.co.uk ]
PHP, .net--[ beginner ] ASP, VB, C, SQL--[ intermediate ] X/D/HTML, CSS, WML, XML--[
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 March 2005 at 5:04pm |
I think we're having a terminology problem.
First I thought you had all the words and links in one "directory file"
Then I thought you wanted to search within all files on your system. My thought now is that all your files are contained within one file - e.g. a flat file system.
Are you using anything specific for your flatfile system - e.g. LDAP - or something from a specific vendor?
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
wolfie
Groupie
Joined: 18 November 2002
Location: United Kingdom
Status: Offline
Points: 64
|
Post Options
Thanks(0)
Quote Reply
Posted: 01 March 2005 at 5:10pm |
|
Give you the code...
http://www.wolfweb.co.uk/default.txt
Edit: That is all my code, no package was used.
Edited by wolfie - 01 March 2005 at 5:25pm
|
Wolfie--[ WolfWeb.co.uk ]
PHP, .net--[ beginner ] ASP, VB, C, SQL--[ intermediate ] X/D/HTML, CSS, WML, XML--[
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 02 March 2005 at 2:00am |
OK, I think I see what you're trying to do now.
- You have 1 asp page with a bunch of if statements.
- A paticular if statement will execute depending on the value of "page" in the query string.
- Each if statement either writes html directly or queries a data base to get data to write.
- The net reult is that the code to produce all possible pages is within a single page but only one section of page code is executed at a time.
The only way you're going to be able to search all pages is to expand the ones that have data pulled from a db. I'll put together some code to loop through your possible pages for a search term and redirect accordingly.
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
Posted: 02 March 2005 at 3:13am |
Search App
search.htm is the form that takes a search term and calls search.asp which returns a list links to your pages containing the search term.
|
Lead me not into temptation... I know the short cut, follow me.
|
 |
wolfie
Groupie
Joined: 18 November 2002
Location: United Kingdom
Status: Offline
Points: 64
|
Post Options
Thanks(0)
Quote Reply
Posted: 02 March 2005 at 6:36am |
|
Dude! You rock! That's just what I wanted!
I owe you a big one.
|
Wolfie--[ WolfWeb.co.uk ]
PHP, .net--[ beginner ] ASP, VB, C, SQL--[ intermediate ] X/D/HTML, CSS, WML, XML--[
|
 |