joonstar
04-12-2003, 09:57 PM
I am a beginner of PHP.
But someone who worked before me in my position have made
the Data base(mysql) and PHP programing.
I am just modifying the codes he made without any help from him.
I modified whole of the site in HTML for the site(I am skilled at HTML).
I modified large part of the PHP(with reading books).
I modified DB little.
Although I didn't made the search box, the search box works well
without any delay at the moment.
Next is the code he made, and simplified by me.
<FORM name=search action="SearchList.php" method="POST">
<select name=item>
<option value="0">total</option>
<option value="1">children</option>
<option value="2">female</option>
<option value="3">male</option>
</select>
<input type="text" name="item="14" maxlength=20> <input type=image src="/gif/search.gif" align="absmiddle">
</FORM>
Anyway, the search box works well.
For example,
if you enter "toy" in the search box and click the search button next to the search box,
The page will show the outcome of the search listing the all threads including the word "toy".
This is an usual search box. so far.
We can see these kinds of search boxes everywhere.
Now I want something I've never seen, but I think it's not difficult.
Dut to the key word "toy" is one of the most frequently searched word, I like to make the button "toy" just under the search box.
before the ending FORM tag </FORM>.
So if a user want to search the word "toy",
He can just click the button "toy" instead of entering the word "toy" in the search box.
Can you help me?
or
Any suggestion?
But someone who worked before me in my position have made
the Data base(mysql) and PHP programing.
I am just modifying the codes he made without any help from him.
I modified whole of the site in HTML for the site(I am skilled at HTML).
I modified large part of the PHP(with reading books).
I modified DB little.
Although I didn't made the search box, the search box works well
without any delay at the moment.
Next is the code he made, and simplified by me.
<FORM name=search action="SearchList.php" method="POST">
<select name=item>
<option value="0">total</option>
<option value="1">children</option>
<option value="2">female</option>
<option value="3">male</option>
</select>
<input type="text" name="item="14" maxlength=20> <input type=image src="/gif/search.gif" align="absmiddle">
</FORM>
Anyway, the search box works well.
For example,
if you enter "toy" in the search box and click the search button next to the search box,
The page will show the outcome of the search listing the all threads including the word "toy".
This is an usual search box. so far.
We can see these kinds of search boxes everywhere.
Now I want something I've never seen, but I think it's not difficult.
Dut to the key word "toy" is one of the most frequently searched word, I like to make the button "toy" just under the search box.
before the ending FORM tag </FORM>.
So if a user want to search the word "toy",
He can just click the button "toy" instead of entering the word "toy" in the search box.
Can you help me?
or
Any suggestion?