• <small id='L5WKT'></small><noframes id='L5WKT'>

      <bdo id='L5WKT'></bdo><ul id='L5WKT'></ul>

    1. <i id='L5WKT'><tr id='L5WKT'><dt id='L5WKT'><q id='L5WKT'><span id='L5WKT'><b id='L5WKT'><form id='L5WKT'><ins id='L5WKT'></ins><ul id='L5WKT'></ul><sub id='L5WKT'></sub></form><legend id='L5WKT'></legend><bdo id='L5WKT'><pre id='L5WKT'><center id='L5WKT'></center></pre></bdo></b><th id='L5WKT'></th></span></q></dt></tr></i><div id='L5WKT'><tfoot id='L5WKT'></tfoot><dl id='L5WKT'><fieldset id='L5WKT'></fieldset></dl></div>
      <tfoot id='L5WKT'></tfoot>

      <legend id='L5WKT'><style id='L5WKT'><dir id='L5WKT'><q id='L5WKT'></q></dir></style></legend>

        以一种形式提交 POST 和 GET 变量

        Submit POST and GET variables in one form(以一种形式提交 POST 和 GET 变量)
          <tbody id='hdiSW'></tbody>
        1. <legend id='hdiSW'><style id='hdiSW'><dir id='hdiSW'><q id='hdiSW'></q></dir></style></legend>

                <i id='hdiSW'><tr id='hdiSW'><dt id='hdiSW'><q id='hdiSW'><span id='hdiSW'><b id='hdiSW'><form id='hdiSW'><ins id='hdiSW'></ins><ul id='hdiSW'></ul><sub id='hdiSW'></sub></form><legend id='hdiSW'></legend><bdo id='hdiSW'><pre id='hdiSW'><center id='hdiSW'></center></pre></bdo></b><th id='hdiSW'></th></span></q></dt></tr></i><div id='hdiSW'><tfoot id='hdiSW'></tfoot><dl id='hdiSW'><fieldset id='hdiSW'></fieldset></dl></div>
                  <bdo id='hdiSW'></bdo><ul id='hdiSW'></ul>

                • <tfoot id='hdiSW'></tfoot>

                • <small id='hdiSW'></small><noframes id='hdiSW'>

                  本文介绍了以一种形式提交 POST 和 GET 变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在开发一种查询工具,该工具可显示 MySQL 数据库中的数据.用户将看到一个包含几十个动态生成的复选框的表单,以便他们可以选择如何查看数据.此数据作为 GET 请求提交,并且(显然)在请求的页面加载时显示在 url 中.

                  I'm working on a query tool that displays data from a MySQL database. The user is presented with a form containing a few dozen dynamically-generated checkboxes so that they can select how to view the data. This data is submitted as a GET request and is (obviously) displayed in the url when the requested page loads.

                  在与输入表单相同的页面上,我有一个动态生成的 php 数组,需要将其发送到与 GET 请求相同的位置.但是,我不希望此数组中的值显示在 URL 中(我在内部使用它们),因此我想将它们作为 POST 请求提交.

                  On the same page as the input form, I have a php array that I am generating dynamically and that needs to be sent to the same place as the GET request. However, I do not want the values in this array to be displayed in the URL (i'm using them internally) so I'd like to submit them as a POST request instead.

                  显然,我不能同时执行 GET 和 POST 请求.我是网络开发的新手(计算机科学方面的人,否则)并且一直在摸索如何解决这个问题.

                  Obviously, I can't do both a GET and POST request at the same time. I'm new to web development (computer science guy, otherwise) and have been scratching my head on how to approach this.

                  如果问题不明确,请告诉我.

                  Let me know if the problem isn't clear.

                  许多人建议我将它们添加到操作变量 a la:

                  form action="process.php?get1=value...

                  所有这些输入都是动态生成的,因此将它们放入操作变量中是不可行的.

                  推荐答案

                  Endophage:

                  如果是 PHP 数组,只需将其存储在会话中即可.

                  If it's a PHP array, just store it in a session.

                  效果很好.显然,我在这里展示了我的 Web 开发绿色,因为我并没有真正考虑使用会话.

                  This worked great. Obviously, I'm showing my web development greenness here as I didn't really consider using a session.

                  这篇关于以一种形式提交 POST 和 GET 变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                    <tfoot id='88SMv'></tfoot>

                        <tbody id='88SMv'></tbody>

                        <bdo id='88SMv'></bdo><ul id='88SMv'></ul>
                        <i id='88SMv'><tr id='88SMv'><dt id='88SMv'><q id='88SMv'><span id='88SMv'><b id='88SMv'><form id='88SMv'><ins id='88SMv'></ins><ul id='88SMv'></ul><sub id='88SMv'></sub></form><legend id='88SMv'></legend><bdo id='88SMv'><pre id='88SMv'><center id='88SMv'></center></pre></bdo></b><th id='88SMv'></th></span></q></dt></tr></i><div id='88SMv'><tfoot id='88SMv'></tfoot><dl id='88SMv'><fieldset id='88SMv'></fieldset></dl></div>
                        • <small id='88SMv'></small><noframes id='88SMv'>

                            <legend id='88SMv'><style id='88SMv'><dir id='88SMv'><q id='88SMv'></q></dir></style></legend>