form表单实现搜索跳转功能
使用post请求
html代码
<form name="forminfo1" method="post" action="/Search">
<input name="filter" type="text" class="search" placeholder="产品搜索">
<input name="" class="btn_search" type="submit" value="">
</form>非form表单实现搜索跳转功能
使用js操作搜索功能
<input type="text" name="keyword" id="keyword" class="search_text" placeholder="请输入关键字"/>
<button type="submit" class="btn_submit btn_search" value="" id="search" onclick="javascript:window.location.href='/news/search.html?keyword='+ document.getElementById('keyword').value"></button>上一篇:比特虫-在线制作ico图标
下一篇:PHP之验证码
作者:
地址:
电话:
邮箱:
QQ:
Copyright © 2018-现在 PbootMoBan All Rights Reserved. 免责声明:网站中图片均来源于网络,如有版权问题请联系删除!