Link one page to another by user tag in PHP

前端 未结 1 1734
耶瑟儿~
耶瑟儿~ 2021-01-29 10:21

Here is my code of my poster in one page

 

Now I want to link this to another page suppose

相关标签:
1条回答
  • 2021-01-29 10:56

    If you want to pass data to another page, you could append to the URL in a GET fashion.

    For example:

    <a href="www.mydomain.com/show.php?img=myimage.jpg">Get Details</a>
    

    Here, we are passing a value myimage.jpg to the show.php page.

    So, in show.php page, you could access this data using the $_GET. For example:

    <?php
    $img_name = $_GET['img']; //will get the value "myimage.jpg"
    //... use this data to do whatever you need
    ?>
    
    0 讨论(0)
提交回复
热议问题