It's hard to describe the situation... here we go...
I've used switch statement for page links, and Search is one of the pages.
In search page, I used the form to get the variable and search the database table:
<div id="search">
<form id="searchform" action="index.php?page=search" method="get">
<input type="text" id="searchfield" name="search_text" value="" />
<input type="submit" class="submitButton" value="Search" />
</form>
</div>
<table>
<tr>
<td valign="top" width="90%">
<?php
$var = @$_GET['search_text'] ;
$trimmed = trim($var);
$limit=10;
if ($trimmed == "")
{...
...
It doesn't work when url is index.php?page=search
When I send out the form, it goes to index.php?search_text=a
How to resolve this??