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

      <small id='9XaSi'></small><noframes id='9XaSi'>

      <tfoot id='9XaSi'></tfoot>

      Joomla 获取 URL 中传递的变量

      Joomla getting Variables passed in URL(Joomla 获取 URL 中传递的变量)

        <bdo id='tBLfo'></bdo><ul id='tBLfo'></ul>
        • <small id='tBLfo'></small><noframes id='tBLfo'>

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

            <tbody id='tBLfo'></tbody>
          <tfoot id='tBLfo'></tfoot>
          1. <legend id='tBLfo'><style id='tBLfo'><dir id='tBLfo'><q id='tBLfo'></q></dir></style></legend>

                本文介绍了Joomla 获取 URL 中传递的变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                当它们被传递到我们的网站时,我试图从 Joomla 中的 URL 字符串中提取值.一个例子是:

                ?source=SEARCH%20&utm_source=google&utm_medium=cpc&utm_term=&utm_content={creative}&utm_campaign=&cpao=111&cpca=&cpag=&kw=

                因此,我希望抓取 VAR=utm_source、抓取 utm_medium 等.

                我想在整个网站上携带这些值,并至少保留到访问者点击表单提交,这样这些值将与表单一起传递以跟踪这些区域以查看它们来自哪里,使用了哪些关键字等.

                任何帮助将不胜感激.

                解决方案

                要获取 URL(和 POST)值,您可以使用 JRequest 或 JInput.JRequest 已被 Joomla 3.0 弃用,因此最好使用 JInput :-)JRequest:http://docs.joomla.org/Retrieving_and_Filtering_GET_and_POST_requests_with_JRequest::getVarJInput:http://docs.joomla.org/Retrieving_request_data_using_JInput

                Joomla 还可以将值存储到用户会话中.如果您想在多个页面上跟踪某些内容,或者想要保留用户所做的某些设置(例如订购),这将非常方便.这些被称为 UserStates,文档在这里:http://docs.joomla.org/How_to_use_user_state_variables>

                I am trying to pull values from a URL string in Joomla when they are passed into our site. an example is:

                ?source=SEARCH%20&utm_source=google&utm_medium=cpc&utm_term=&utm_content={creative}&utm_campaign=&cpao=111&cpca=&cpag=&kw=

                so out of this I will want the VAR=utm_source grabbed, utm_medium grabbed etc.

                I want to carry these values across the sites and held at least until the visitor hits submit on a form so these values will be passed with the form to track these areas to see where they came from, what keywords were used etc.

                any help will be appreciated.

                解决方案

                To get URL (and POST) values you use either JRequest or JInput. JRequest is depreceated with Joomla 3.0 so better use JInput :-) JRequest: http://docs.joomla.org/Retrieving_and_Filtering_GET_and_POST_requests_with_JRequest::getVar JInput: http://docs.joomla.org/Retrieving_request_data_using_JInput

                Joomla also has the possibility to store values into the user session. This is handy if you want to track something over multiple pages, or want to preserver some settings (like ordering) a user made. These are called UserStates and the doc is here: http://docs.joomla.org/How_to_use_user_state_variables

                这篇关于Joomla 获取 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='NeYbw'><style id='NeYbw'><dir id='NeYbw'><q id='NeYbw'></q></dir></style></legend>

                      • <bdo id='NeYbw'></bdo><ul id='NeYbw'></ul>

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

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

                            <tbody id='NeYbw'></tbody>

                          <tfoot id='NeYbw'></tfoot>