<FORM name=search action="SearchList.php" method="POST">
<input type="hidden" name="group" value="0">
<input type="submit" name="item" value="toy">
</FORM>
The above code does work well,
If I click the button, the SearchList.php page will show every data that included the word "toy".
However, this time I don't like the looking of input type button.
I like the HTML button.
So I tried change the code as follow.
(trial1)
<FORM name=search action="SearchList.php" method="POST">
<input type="hidden" name="group" value="0">
<a href=SearchList.php name=item> toy</a>
</FORM>
(trial2)
<FORM name=search action="SearchList.php" method="POST">
<input type="hidden" name="group" value="0">
<input type="hidden" name="item" value="toy">
<a href=SearchList.php> toy</a>
</FORM>
Both of trials doesn't work.
They lead the SearchList.php to show not only every data that iinclude the word "toy" but also all data from mysql.
I think that The URL(SearchList.php) comes two times in "FORM action" and "A href" is not logical.
I hope you help me that into logical and workable.