<form action="/example/html/form_action.aspx">
  <p>First name: <input type="text" name="fname" /></p>
  <p>Last name: <input type="text" name="lname" /></p>
  Male: 
  <input type="radio" name="Sex" value="Male" checked="checked">
  <br />
  Female: 
  <input type="radio" name="Sex" value="Female">
  <input type="submit" value="Submit" />
</form>我想问的是,点了这个submit之后,到底向服务器发了什么东西,是这些控件输入的内容都拼成了一个
get串或post串吗?
submit的机制我一直没baidu到,才在这里一问,很汗,谢谢大家了

解决方案 »

  1.   

    SUBMIT is a TYPE attribute value to the INPUT element for FORMs. It specifies a button that, when activated, submits the information entered to a processing script. If there are multiple SUBMIT buttons in a form, only the one activated should be sent to the form processing script.
      

  2.   

    http://blooberry.com/indexdot/html/tagpages/i/inputsubmit.htm
      

  3.   


    <form action="/example/html/form_action.aspx">表单提交到form_action.aspx页面
      

  4.   

    在form_action.aspx页面设置断点 看下
      

  5.   

    怎么说呢,这个是http协议层面的东西,要用http Analyzer这些东西才能看到的
      

  6.   


    楼上大哥,我aspx里面用
    Request.QueryString.AllKeys;
    没有捕捉任何数据呀zsx841021
    兄,你那网站都是e文,好像一下没看懂哦
      

  7.   

    我之所以会问这个问题,是因为看到这段代码
      <form action="http://www.baidu.com/baidu" target="_blank">
      <input id="kw" type=text name=word size=30>
      <input type="submit" value="百度搜索">
      </form>
    这样就能直接调用baidu搜索,所以我很好奇这个
    submit和action的配合是如何产生这个效果
      

  8.   

    那是因为http://www.baidu.com/baidu那里有个后台文件接收了post过去的数据,接收方法百度是php代码的,不过都是request["kw"] 或者 request("kw")  差不多这样