带图片搜索的链接方式 <form name="searchform" method="post" action="/e/search/index.php" target="_blank"> <input type="hidden" name="show" value="title"> <select id="search2" name="search2" style="width:150px; position:relative;top:65px;left:15px"> <option selected="selected" value="40">飞利浦手机</option> <option value="40">小加电频道</option> <option value="40">照明频道</option> </select> <INPUT id=keyboard size=20 name=keyboard height="10" style="position:relative;top:67px;left:15px; width:110px;" /> <input type="image" src="/img/agosearch1.jpg" style="position:relative;top:67px;left:10px;" /> </form>
最简单的搜索方式 <form name=form method=post action=/e/search/index.php> <input name="keyboard" type="text" size="15" class="inputkey"><input type='hidden' name='show' value='title' /><input type='hidden' name='classid' value='0' /> <input type="submit" name="submit" value="新闻搜索" /> </form>
带有value的搜索方式 <FORM action=e/search/index.php method=post><input type=show value="关键字" class="scarch1" onmouseover="this.focus()" onblur="if (this.value =='') this.value='关键字'" onfocus="this.select()" onclick="if (this.value=='关键字') this.value=''" size=30 name=keyboard> <SELECT name=show><option value="title" selected>标题</option><option value="newstext">全文</option></SELECT> <input type="submit" name="Submit22" value="搜索" class="scarch2"></form></div>
多条件搜索方式看 http://bbs.phome.net/search/?ebb=SearchResult&searchid=19980
多表搜索方式。。
<input type="hidden" name="tbname" value="表名"> <input type="hidden" name="tempid" value="搜索模板id">
在默认的搜索前面加上这个就ok
都是简单的html
写给帝国爱好者群里面的一个人看。。帝国爱好者群号:48024477
|