html:form表单发送get请求


请求百度:

<html>
<form action="https://www.baidu.com/s"  method="get">
<input type="text" name="wd" value="python" />
<input type="submit" name="submit" />
</form>
</html>

变量wd的value值就是搜索内容,即在百度内搜索python

 

请求必应:

<html>
<form action="https://cn.bing.com/search" method="get" >
<input type="text" name="q" value="html" />
<input type="submit" name="submit"/>
</form>
</html>

变量q的value值就是搜索内容,即在必应内搜索html

 

注:必应可以直接搜中文,百度不行,还没研究明白什么原因

       post同理,把method改成post

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM