Depending on the "id" in the video source I want to load different video files via php. For example if the source in the video tag is "/get.php?id= 1"
load, http://example.com/movie1.mp4
and "/get.php?id= 2"
load, http://example.com/movie2.mp4
and so on. Basically I want the php file to act as a "link"
to the video files, how would you do this?
<html>
<body>
<video width="400" controls>
<source src="/get.php?id=1" type="video/mp4">
</video>
</body>
</html>
The get.php file so far:
<?php
$id = ($_GET["id"]);
if ($id = 1) {
//load movie1.
}
?>