I am trying to retrieve the ID from the url with php.
The code in this page, has all the video's. With the thumbnail form youtube and when you click on the thumbnail. It redirect to another page with the id in the url.
This is the url when I click on a video:
http://pwebsite.project.local/?page=overzichtid?id=4?tag=dorp
This code below is on the page where you can click an video:
<div class="scrollbar">
<a id="videoList" name="video" href="?page=overzichtid?id='.$videoid.'">
<img src="' .htmlentities($thumbnail) . '" width="235"/>
<p id="titelText"><b>' . htmlentities($title) . '</b></p>
</a>
</div>
Here I am trying with the $_GET
method to retreive the id.
Only when I echo the id it is not shown on the webpage.
This code is in the page overzichtid:
<?php
$id = $_GET['id'];
echo $id;
?>
Is this done right or should it be something else to show it on the webpage?