<small id='NTKD5'></small><noframes id='NTKD5'>

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

    1. <tfoot id='NTKD5'></tfoot>

        <bdo id='NTKD5'></bdo><ul id='NTKD5'></ul>
      1. 如何通过 PHP 在页面正文中获取 URL 参数?

        How to get URL argument in Page body by PHP?(如何通过 PHP 在页面正文中获取 URL 参数?)
          1. <small id='vjyHD'></small><noframes id='vjyHD'>

              <tbody id='vjyHD'></tbody>

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

                1. 本文介绍了如何通过 PHP 在页面正文中获取 URL 参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 Drupal 站点上,页面正文内容启用了 PHP 代码.如何在 PHP 代码中获取参数及其值?例如,我想从以下位置获取 ref33002:

                  On a Drupal site, PHP code is enabled for Page body content. How can I get the argument and its value in PHP code? For example, I'd like to get ref and 33002 from:

                  http://example.com/node/1?ref=33002
                  

                  在以下代码中:

                  <?php 
                    print arg(0);
                    print arg(1);
                    print arg(2);
                    print arg(3);
                  ?>
                  

                  我可以得到 node1,但没有关于 ref33002 的信息.

                  I can get node and 1, but nothing about ref or 33002.

                  谢谢!

                  推荐答案

                  使用这个:

                  <?php
                  $a=$_REQUEST['ref'];
                  echo "The value of the ref parameter is ".$a;
                  ?>
                  

                  这篇关于如何通过 PHP 在页面正文中获取 URL 参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 的问题)

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

                  <small id='C2H2i'></small><noframes id='C2H2i'>

                    <tbody id='C2H2i'></tbody>
                  • <tfoot id='C2H2i'></tfoot>

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