Syntax wrote:
On the actual page, change:
<input type="hidden" name="action" value="Search">
To:
<input type="hidden" name="action" value="advancedsearch">
Um.
So, the "
action"
variable tells the PHP what action it's supposed to be performing, since one PHP file (in this case search.php) performs more than one function. So what we need is to rewrite the "
Search(Author, Topic, Message, Boards)"
function. If I *had* some "
AdvancedSearch(...)"
function, then sure, changing the action to something else might make sense, but rather that support two searches, I'd probably just edit the existing "
Search(...)"
function.
So what we need is a PHP function that will parse the search string and turn it into some fantastically fast and good SQL.
____________________________
The greatness of a nation and its moral progress can be judged by the way it treats its animals.
--
Mahatma Gandhi