Well, looking at the source of the page, you can see that when you click on the "Search", it is firing of Javascript function
formcheck() (and the source to this is also viewable when you do view source.
this function is what ends up taking you to /browse/(searchterm).
I'm not sure what you are asking about the page titles... I don't think it is using mysql to generate the title tag, as no matter what I type in , it shows up in the title.
Now for how to handling the actual URL, you could do something like the following as an .htaccess file:
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)$ /index.php?cmd=$1&term=$2 [L]
</IfModule>
(I'm not the best at rewrite rules without testing them, so that may not be exact above), Gist of it would be that any request to the server that is not calling an actual file or directory, and it matches the layout of /whatever/whatever (ie /browse/elephant ), it will actually feed index.php?cmd=browse&term=elephant.
-Greg