lundi 24 août 2020

Dynamic PHP Page

I want to create a dynamic PHP. Here's my code:

  <?php include('header.php')?>
  <div class="container-big" id="embed">
              <div class="item-big">
                    <img src="https://www.instagram.com/p//media/?size=l" class="photo-big" >
              </div>
  </div>
              <script>
                    var code= {"code" : "CEQc0ZGJH0f"}; //Enter shortcode here
                    w3.displayObject("embed", code);
              </script>
<?php include('footer.php')?>

Inside the last script tag,

                var code= {"code" : "CEQc0ZGJH0f"}; //Enter shortcode here
                w3.displayObject("embed", code);

I want to generate a different page with the "code" so every code has a different page. For instance, if the name of this file is index.php, when I open index.php?code=CEN6PGfFTng the "code" inside PHP changed to "CEN6PGfFTng" instead of "CEQc0ZGJH0f" without creating CEN6PGfFTng.php.




Aucun commentaire:

Enregistrer un commentaire