Stuck! Move text from html to php page.

Hello, Not sure how to use the GET to “echo the title” under my movie?
The Movie.mp4 will show up but has no title. I’m stuck! New to php.
Thank you guys.


Title: This is a good movie

<?php $video = $_GET["video"]; $video = $_GET["title"]; if (strlen($video) < 1) { echo "No Title Given"; exit; } ?>

Play Video

<? echo $title; ?>

You are overwriting your variable:

$video = $_GET[“video”];
$video = $_GET[“title”];

a href=“video.php?video=Movie&title=MyTitle”

Kevin,
Thank you so much. It worked! Yes I was overwriting it.

Sponsor our Newsletter | Privacy Policy | Terms of Service