30 Nov
2005
30 Nov
'05
6:55 a.m.
On 11/29/05 9:37 PM, Andre Molnar wrote:
A simple solution:
Createa a full PHP page: Include your standard 404 not found text ('sorry you didn't find what you were looking for')
Parse the request URI and create a query string Use that to generate a link (to the search page)
No automatic search result - but it gives the user the option to use the search with a pre filled query in the form of a link.
<a href="search?keys=<?php print $query_string;?>">[whatever they searched for]</a>
(or whatever the proper code would be these days)
make that page your 404 page
good god man! escape them strings! -- James Walker :: http://walkah.net/ :: xmpp:walkah@walkah.net