I'm trying to accomplish something like this website
As you can see any video that you click on,
takes you to that same page. The only difference is the video playing.
I'm trying to do the same for my website. here is my code
$id = $_GET['id'];
<iframe src="media/<?php echo $id?>.mp4" allowfullscreen></iframe>
You forgot the "echo" before your variable
$id. I think that's why it didn't work.
You should use the video tag provided by HTML5. It allows you to insert a video content into your web page.
<?php $id = $_GET['id']; ?> <video width="320" height="240" controls> <source src="media/<?php echo $id; ?>.mp4" type="video/mp4"> Your browser does not support the video tag. </video>