<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [TOC] >[success] # form表單提交數據到服務器 <br/> ~~~ 下面案例通過'form表單'的方式提交給后臺數據,在'index.html'頁面'input'中輸入內容提交給后臺, 需要注意的地方,'form'表單方式提交數據必須要給input加'name'屬性 ~~~ <br/> >[success] ## 前端代碼部分 <br/> index.html <br/> ~~~ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>首頁</title> </head> <body> <!-- form表單發送數據 action: // 指定提交的url method: // 提交的方式 get 不設置 默認是get post 表單元素提交數據 使用name 進行區分標記 --> <form action="./getData.php" method="get"> <!-- 文本框 --> <input name="superStarName" type="text" placeholder="請輸入你喜歡的英雄"> <!-- 提交按鈕 --> <input type="submit"> </form> </body> </html> ~~~ <br/> >[success] ## 后端代碼部分 <br/> getData.php <br/> ~~~ <?php // 接收提交過來的數據 // PHP中為我們提供了 超全局變量,跟js中的window對象類似 不需要定義直接就可以使用是有值的 // get // post // 設置頁面編碼格式 header('content-type:text/html;charset=utf-8'); echo $_GET; // $_GET返回的是一個PHP數組 echo '<br/>'; print_r($_GET); ?> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看