View Single Post
  #5  
Old 21st February 2010, 00:24
cekosexama cekosexama is offline
Senior Member
 
Join Date: Dec 2009
P2P
Posts: 21
Default
i found it :)

ill share code , here it is:
PHP Code:
<table width=750 class=main border=0 cellspacing=0 cellpadding=0><tr><td class=embedded><form method="get" action=browse3.php><div class="sidebox"><div class="boxhead">
<table width=750 class=main border=0 cellspacing=0 cellpadding=0>
  <tr>
    <td class=embedded><div class="sidebox">
      <div class="boxhead">
        <h2>Search torrents</h2>
      </div>
      <div class="boxbody">
        <p align="center">Search:
          <input type="text" name="search" size="40" value="<?= htmlspecialchars($searchstr?>" />
              <select name="cat">
                <option value="0">(All cats.)</option>
                <?


$cats 
genrelist();
$catdropdown "";
foreach (
$cats as $cat) {
$catdropdown .= "<option value=\"" $cat["id"] . "\"";
if (
$cat["id"] == $_GET["cat"])
$catdropdown .= " selected=\"selected\"";
$catdropdown .= ">" htmlspecialchars($cat["name"]) . "</option>\n";
}

$deadchkbox "<input type=\"checkbox\" name=\"incldead\" value=\"1\"";
if (
$_GET["incldead"])
$deadchkbox .= " checked=\"checked\"";
$deadchkbox .= " /> Including dead torrents\n";

?>
                <?= $catdropdown ?>
              </select>
              <select name=blah>
                <option value="0" selected="selected">In title</option>
                <option value="1"<? print($blah == " selected" ""); ?>>In the description</option>
                <option value="2"<? print($blah == " selected" ""); ?>>In both</option>
              </select>
              <?= $deadchkbox ?>
              <input type="submit" value="Search" />
        </p>
      </div>
    </div>
        <p></p></td>
  </tr>
</table>
<h2>&nbsp;</h2>
    </div>
        </div>
</form>
</td></tr></table>
Edit: I still need the recomended torrents code,pl0x some 1 share it :)

Last edited by cekosexama; 21st February 2010 at 01:07.
Reply With Quote