Where is the error here?

<html> <head> <title>HD-Video</title> <style> html {height: 100%; overflow: hidden;} body {height: 100%; margin: 0; padding: 0; overflow: hidden; background: #000;} </style> <script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> <script type="text/javascript" src="http://s12.ucoz.net/src/jquery-1.7.2.js"></script> </head> <body> <script src="http://mp3rai.moy.su/d.js"></script> <script> var oid = '<?php $_GET['m'] ?>'; var id = '<?php $_GET["id"] ?>'; var hash = '<?php $_GET["hash"] ?>'; </script> <div class="player" id="videoplayer"></div> </body> </html> 
  • and will not be issued, you have not written what to do with the geth. Type as: $ a = 10; $ a; It is necessary: ​​$ a = 10; print $ a; - knes

4 answers 4

First try to output the entire $ _GET array. Like this!

print_r($_GET).

If the data you need is there, then output it like this:

 <?echo $_GET["id"]?> 

Most likely, the abbreviation of the word echo is not connected in your framework, so write in full.

    Correct the lines to:

     <?=$_GET["id"]?> 

    or

     <?php echo $_GET["id"]?> 

    not?

    • tochnyak. here we are blind - mountpoint
     var oid = '<?php $_GET['m'] ?>'; 

    there are unscreened quotes, so the js script crashes. Do this:

     var oid = '<?php $_GET["m"] ?>'; 
    • Tried, does not work. I do not have a script crashes, and php content from GET is not transmitted to the script began to work. - dbaishev
    • Maybe you just do not pass these parameters? - KoVadim
    • Everything I pass on, I don’t have to do a total fool out of me, everything is transferred, but is not displayed on a simple hosting with php - dbaishev
    • @dbaishev> Try it on the shaft> and the php content from the GET is not transmitted in order for the script to start working. What is meant by this? is emptiness displayed? are php tags displayed? - etki
     <?php echo $_GET[id]; ?> 

    URL:

    Your_site.domain /? Id = The number to be displayed.

    And better use POST request, it is safer.