title: Wen I click on a movie it still apears the lsit of movies . PHP
body: <p>So I was making a PHP site and it's done but I want to change something  , when I click on one movie  I don't want to still show me the list of movies I want only the details about that movie and the 'back to home' button.I greatly appreciate your help.</p>
  
  <pre><code>&lt;?php 
  
      //An array ith movies
      $movies = array();
      $movies[1] = array(
                          'title' =&gt; 'The Godfather',
                          'year'  =&gt; 1972, 
                          'poster'=&gt; 'images/godfather.jpg');
      $movies[2] = array(
                          'title' =&gt; 'Pulp fiction',
                          'year'  =&gt; 1994, 
                          'poster'=&gt; 'images/pulpfiction.jpg');
      $movies[3] = array(
                          'title' =&gt; 'Life is beautiful',
                          'year'  =&gt; 1997, 
                          'poster'=&gt; 'images/life.jpg');
      $movies[4] = array(
                          'title' =&gt; 'Goodfellas', 
                          'year'  =&gt; 1990, 
                          'poster'=&gt; 'images/goodfellas.jpg');
      $movies[5] = array(
                          'title' =&gt; 'The Shawshank Redemption', 
                          'year'  =&gt; 1994, 
                          'poster'=&gt; 'images/theshawshankredemption.jpg');
      $movies[6] = array(
                          'title' =&gt; 'The Dark Knight',
                          'year'  =&gt; 2008,
                          'poster'=&gt; 'images/thedarkknight.jpg');
      $movies[7] = array(
                          'title' =&gt; '12 Angry Men',
                          'year'  =&gt; 1957,
                          'poster'=&gt; 'images/angrymen.jpg');
      $movies[8] = array(
                          'title' =&gt; 'Schindler'."'".'s List',
                          'year'  =&gt; 1993,
                          'poster'=&gt; 'images/schindlerslist.jpg');
      $movies[9] = array(
                          'title' =&gt; 'Fight Club',
                          'year'  =&gt; 1999,
                          'poster'=&gt; 'images/fightclub.jpg');
      $movies[10] = array(
                          'title' =&gt; 'Star Wars: Episode V - The Empire Strikes Back',
                          'year'  =&gt; 1980,
                          'poster'=&gt; 'images/starwarsv.jpg');
      $movies[11] = array(
                          'title' =&gt; 'Inception',
                          'year'  =&gt; 2010,
                          'poster'=&gt; 'images/inception.jpg');
      //print('&lt;pre&gt;');
      //print_r($movies);
  
  
  
  
      echo "&lt;h1&gt;My movies&lt;/h1&gt;\n";
      echo "&lt;ul&gt;\n";
      for ($i=1; $i &lt; count($movies); $i++) { 
          $movie_title = $movies[$i]['title'];
          print('&lt;li&gt;&lt;a href="movies.php?movie=' . $i . '"&gt;' . $movie_title . "&lt;/a&gt;&lt;/li&gt;\n");
      }
      echo "&lt;/ul&gt;\n"; 
  
  
      //make sure exists .
      if (isset($_GET['movie'])) {
          $movie_position_in_array = $_GET['movie'];
          print($movie_position_in_array);
  
  
      //test
      $movie_position_in_array = $_GET['movie'];
      $movie_details = $movies[$movie_position_in_array];
  
  
      //Display all movie details
      $movie_position_in_array = $_GET['movie'];
      $movie_details = $movies[$movie_position_in_array];
      print('&lt;h1&gt;'. $movie_details['title']. '&lt;/h1&gt;');
      print('&lt;h2&gt;'. $movie_details['year']. '&lt;/h2&gt;');
      print('&lt;img src="' . $movie_details['poster'] . '"&gt;');
  
  
      //give users a link
      print('&lt;p&gt;&lt;a href="movies.php"&gt;Back to movies&lt;/a&gt;&lt;/p&gt;');
  
      } 
      else {
          echo '&lt;p&gt;---------------------------------------------------------------------------&lt;/p&gt;';
      } 
  
  
  
  
  
      ?&gt;
  </code></pre>