joonstar
04-24-2003, 10:15 PM
<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.
I don't know this is the matter of HTML stuff, PHP, or mysql.
Anyway, I put this one here in HTML catagory.
I've experienced some of my postings was moved into another
catagory.
I know your intention. and my faults.
I'll think about the catagory again when I post a new matter.
When I met your moving for the first time,
That was very embarrasing.
It took much time to find where was my posting.
Now I can find my posting without wasting of my time by using your search box.
although the your moving into another catogory happen.
If you listen to me, I like to suggest two things.
(1) warning before moving for 1 or two times.
(2) explaing why the posting is not a HTML stuff but a javascript stuff. or why the key issue of the posting is not a javascript stuff but PHP stuff,
I think Catagorizing itself can be greater teaching than the main issue.
Oops,
Today, I was too talkative.
Have a good day!
<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.
I don't know this is the matter of HTML stuff, PHP, or mysql.
Anyway, I put this one here in HTML catagory.
I've experienced some of my postings was moved into another
catagory.
I know your intention. and my faults.
I'll think about the catagory again when I post a new matter.
When I met your moving for the first time,
That was very embarrasing.
It took much time to find where was my posting.
Now I can find my posting without wasting of my time by using your search box.
although the your moving into another catogory happen.
If you listen to me, I like to suggest two things.
(1) warning before moving for 1 or two times.
(2) explaing why the posting is not a HTML stuff but a javascript stuff. or why the key issue of the posting is not a javascript stuff but PHP stuff,
I think Catagorizing itself can be greater teaching than the main issue.
Oops,
Today, I was too talkative.
Have a good day!