首页 新闻 会员 周边

关于form的action

0
悬赏园豆:10 [已解决问题] 解决于 2009-07-18 12:12

关于form的action

我知道html中,form的action可以是一个目标页面,如:
 <form name="form1" method="post" action="123.asp">
也可以是这样的形式:
 <form name="form1" method="post" action="?action=edit">
或:
 <form name="form1" method="post" action="">
也就是提交给当前页

但是分析百度知道
http://zhidao.baidu.com/
的时候,发现它的搜索框:
<form action="/q" name="ftop" id='top_search_box' method="get" onsubmit="qSearch();return false;">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="hd">
.....
   
    <input  type="submit" tabindex=2 value="搜索答案" class="bnsrh">
    <input  type="button" onclick="NewAskTop()" style="margin:0 8px" tabindex=3 value="我要提问" class="bnsrh" />
    <input  type="button"  class="bnsrh" tabindex=4 value="我要回答" onclick='newQuestionSearch()'/>

</div>
    </td>
</tr></table></form>

是一个"/q",郁闷了,这是什么意思,关于form的action可以有几种形式的值,哪里能获得完整的资料

x_craft的主页 x_craft | 初学一级 | 园豆:100
提问于:2009-07-18 11:22
< >
分享
最佳答案
0

/q 可能它重写页面地址了,所以action里面是这个

www.myidc.info | 菜鸟二级 |园豆:265 | 2009-07-18 12:10
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册