PHP does not return the second parameter via URL in Google Chrome

Asked

Viewed 160 times

0

  • It seems correct ... of the one var_dump($_GET);

  • Here appeared usr as expected. Have you tried clearing your browser cache? Maybe it’s an earlier version that is displaying.

  • I’ll clean up now

  • nothing, I actually created this file now for testing because I am facing the same problem in a file that uses $_GET. I’ll try another browser

  • yes in another browser works to the satisfaction. Problem is in Crhome. I must change the question then right?

  • Yes, I believe this detail is relevant, but it’s still strange that it just doesn’t work there. Probably some browser settings.

  • Here is working on Chrome tmb

  • yeah, since yesterday working on it and nothing. Idea, I will test on another PC.

Show 3 more comments

1 answer

0

Try to get the parameters this way, because here tested and worked normal so much by $_GET how much for parse_url

<?php
    $url = "http://m...content-available-to-author-only...s.com/vedere/vede_musica.php?a=us&b=r";
    $result = parse_url($url);
    parse_str($result['query'], $var);

    print_r($var);
?>

This will return:

Array
(
    [a] => us
    [b] => r
)

$var is now a array with the parameters passed in the URL.

Idone example

  • includes your code in the archive and as amazing as it seems now comes everything you have right

  • I have a page that has if (echo $_GET["singer"]){ ..... Further if ($_GET["music"]){ ..... this last one doesn’t work at all. I’ll check with your code

  • You’re using if to check which GET in the url, the way you described it?

  • no, so if (isset($_GET['music'])) { ...

  • If you’re using this isset, on the page whose url you put in the question, it won’t even work, but it’s very likely to be something in your browser. 'Cause I tested it here and it worked just fine

  • No, I use this isset in other parts of the code, alias, multiple isset, and they all work well. I just took your part of the code and now my previous one works.

  • Reevaluate your code line by line so probably some typo was invalidating the code

  • The question is not, migrated to Cloud technology, will there be delay in file updates via FTP ?

  • I can’t tell you for sure, but if that’s the case you’re probably updating your files but your Cloud is still using the cached version of your files, I used Cloud earlier, and I stopped for this reason.

  • thanks, I’ll check with the server support

  • said by support: cloud we have server which will cache your website which will fetch the Contents. As you have cache the update will take some time

  • I stopped using Cloud’s for this reason, I needed to make constant updates to the code and the cache took time to update

  • only that it works well on the other 3 sites, only on one that does not, and this one is the main one that is in the root, the others are inside the respective folders although they have own domains.

  • It took over 24 hours, Uffa, I’m glad you’re back to normal. So stay smart, migrate to the clouds DON’T UPDATE BEFORE 48 hours. Propagation period is 24 hours, the other 24 is on me. rs

Show 9 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.