On my websites homepage, I want to add a search box for visitors,
where they can enter a code which sends them to another webpage
contained in a main folder and different sub-folders). The code will
be (partly) contained in the name of the webpage (e.g if the code is
'cats', the name of the webpage would be /cats3423.html). Therefore,
this should be a kind of search engine which only searches in the name
of the webpages, but NOT in the content of the webpage. The search is
to be limited to a main folder (e.g. '\result') with sub-folders
(\result\xy\cats3423). In case of successfull search, the page should
immediately be shown, but not just listed on a 'search result page'.
In case of unsuccessfull search, the user should be sent to a 'sorry
page'). Please provide me with the code, either in ASP, html or Java. |