Status
Not open for further replies.

Daviid

Member
24
2009
0
0
Hello,
Im using WCDDL, how can i implement a search box with a option box next to it. So when i select say applications it only search's for applications?
 
2 comments
Code:
<form action="index.php" method="post">
Search: <input type="text" name="q" /><br />
Type:  <select name="type">
<option value="app">Software</option>
<option value="game">Game</option>
*etc*
</select>
<input type="submit" value="Go!" />
</form>
 
Or try this

Code:
                    <form action="index.php" method="post">
                    <input type="text" name="q" value="" size="20" />
<p><?php
echo '<SELECT name=type>';
echo '<OPTION selected>All</option>';
foreach($core->allowed_types as $type)
{
echo '<OPTION value='.$type.'> '.ucfirst($type).'</option>';
}
echo '</select>';
echo '<input type=submit value=GO />';
?>
                    </p>
                    </form>
 
Status
Not open for further replies.
Back
Top