PHP redirection page based on GET variables
I am new to PHP, so please bear with me in this elementary level question. I want to create a script that redirects the user to various addresses based on the GET variable. for example, redirection.php?id=youtube should redirect them to www.youtube.com, redirection.php?id=twitter should redirect them to www.twitter.com, and so on. Here is my code: <!DOCTYPE html> <html> <head> <title>Please Wait...</title> </head> <body> <?php // directs the user to various locations on the internet print_r($_GET); if($_GET['id'] === 'youtube') { header('Location: http://www.youtube.com/') ; die() } if($_GET[