1

I am facing this (I don't know what to call this) situation I have a URL like

site.com/?tag=value&other=1&more=2

the problem is that when i

var_dump($_GET);
// prints
array( 'other' => '1', 'more' => '2');

for some reason the parameter tag is missing from $_GET array.

any ideas? the server request_uri is

'REQUEST_URI' => string '/site-com/?other=1&more=2'

its even missing in $_SERVER['REQUEST_URI'] and the server is

Linux 4.4.216-1.el6.elrepo.x86_64 x86_64
PHP 7.3
 

Thanks

21
  • PHP version ? Web server ? OS ? Weird behaviour. Commented Jun 14, 2021 at 15:22
  • Strange! Whats' the result of this : site.com/?other=1&more=2&tag=value Commented Jun 14, 2021 at 15:24
  • @AymDev, Yes that is why I said I don't know what to call this situation. Commented Jun 14, 2021 at 15:28
  • @Dri372 same the tag is missing, no matter where you put the tag it is still missing! Commented Jun 14, 2021 at 15:29
  • @AymDev, I updated the question its Linux and PHP 7.3 Commented Jun 14, 2021 at 15:35

1 Answer 1

2

This answer sumerize the discussion in comment.

This url 'REQUEST_URI' => string '/site-com/?other=1&more=2'

suggests that there is some url rewriting somewhere, it can be done by the framework, web server settings (or .htaccess, virtualhost).

In this case, the queston was not enough clear, 'tag' is only an example, in fact in this OP 'tag' is utm_campaign and Godaddy filters these utm_ tags.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.