0

上部と下部に 1 つずつ、合計 2 つの検索ボックスがあります。コンテンツが途中にあります。結果が見つからない場合、そのうちの 1 つを削除するにはどうすればよいですか? (一番下)

ありがとう

私はフォームのためにこれを得ました:

<form class="form" name="search" method="_post" action="index.php"><br>
<input style="width:300px; height:28px; vertical-align:middle;" class="searchbox" type="text" name="q" value="<? print $info['keyword']; ?>"/>
<select name="type" style="height:28px; width:100px; font-size:18px; vertical-align:middle; margin-left:3px; margin-right:2px;">    <input type="submit" name="search" value="Search" style="width:80px; height:28px; font-size:16px; text-align:justify; vertical-align:middle;" /><br><br>
<input type="radio" name="stype" value="all" <? if(!isset($_GET['stype'])||$_GET['stype']=="all") print "checked";?> /> all files
<input type="radio" name="stype" value="checked" <? if(!isset($_GET['stype'])||$_GET['stype']=="checked") print "checked";?> /> checked files

4

1 に答える 1

1
<?php if(count($results):?>
<form class="form" name="search" method="_post" action="index.php"><br>...
<?php endif;?>

それはあなたが提供した情報(コードなどなし)での最良の推測です。

于 2010-08-11T22:00:21.417 に答える