nevvermind's example does not look correct. A similiar, but more correct, example:
<?php
// Process video based on id.
if (!empty($_GET['id']) && ctype_digit($_GET['id'])) {
echo $_GET['id'] . ' video';
} else {
echo 'Sorry, please enter a valid video id.';
}
Of course, you might not just check that $_GET['id'] is integral. You might actually try to check if the id is valid in the sense that it refers to a video. Likewise, the display of the video would presumably involve more work than just displaying a particular string.