[development] 404 search

James Walker walkah at walkah.net
Wed Nov 30 05:55:42 UTC 2005

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 at walkah.net

More information about the development mailing list