I want to change this code…
<form action="search.php" method="get" name="form1" id="form1">
<select name="name">
<option value="category">CATEGORY</option>
<option value="product">PRODUCT</option>
</select>
<input name="value" type="text" id="catprod" size="20" />
At the end I want to receive a link of type…
http://www.mysite.com/search.php?product=car
or
http://www.mysite.com/search.php?category=auto
depends of what item from the drop list will choose a customer. “Car” and “Auto” are search requests from the customers, which they will type in.
I would use the following:
your javascript and html are mainly seperated this way.