topical media & game development

talk show tell print

basic-php-02-moviesite-rev07.php / php



  <?php
  session_start();
  
  //check to see if user has logged in with a valid password
  if (_SESSION['authuser'] !=1 ) {
    echo "Sorry, but you don't have permission to view this
         page, you loser!";
    exit();
  }
  ?>
  <html>
  <head>
  <title>My Movie Site - <?php echo _REQUEST['favmovie']; ?></title>
  </head>
  <body>
  <?php
    echo "Welcome to our site, ";
    //delete this line: echo _COOKIE['username'];
    echo _SESSION['username'];
    echo "! <br>";
    echo "My favorite movie is ";
    echo _REQUEST['favmovie'];
    echo "<br>";
    movierate = 5;
    echo "My movie rating for this movie is: ";
    echo movierate;
  ?>
  </body>
  </html>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.