title: How to Rock Paper Scissors game with images in PHP and HTML
body: <p>first page-im using radio buttons..so the user will click
  rock for example and the computer will play paper but i want it
  to be using images.. i just started coding and so very lost</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
       &lt;title&gt;Rock Paper Scissors Game&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;form action="rps3.php" method="post"&gt;
  &lt;h1&gt; Rock Paper Scissors Game&lt;/h1&gt;
      &lt;p&gt;Your Choice:&lt;/p&gt;
      &lt;p&gt;Rock&lt;input type="radio" value="rock" name="playerthrows"  /&gt;
         Paper&lt;input type="radio" value="paper" name="playerthrows"  /&gt;
         Scissors&lt;input type="radio" value="scissors" name="playerthrows" /&gt;
      &lt;/p&gt;
      &lt;p&gt;&lt;input type="submit" value="Play"&gt;&lt;/p&gt;
  
  
  
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>second page- this is how i thought the php would look...
  I dont know how to attatch images + this code is not working. The output would like this > You picked: scissors &amp; The computer picked: rock, paper, scissors or> Notice: Undefined offset: 2 in /home/game/public_html/rps3.php on line 20
  You picked: paper
  &amp;
  The computer picked: </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
       &lt;title&gt;Rock Paper Scissors Game&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt; Rock Paper Scissors Game&lt;/h1&gt;
  
  &lt;?php
      if($_POST['playerthrows']){
  
  }
  
      else if(!$_POST['playerthrows']){
  
  }
          $playerthrows = $_POST['playerthrows'];
          $Choosefrom= array('rock, paper, scissors');
          $Choice= rand(0,2);
          $Computer=$Choosefrom[$Choice];
  
      echo 'You picked: '.$playerthrows.'';
      echo '&lt;br /&gt;&amp;&lt;br /&gt;';
      echo 'The computer picked: '. $Computer .'';
  
      if($playerthrows == $Computer){
      }
      if ($playerthrows == $Computer){
      echo ' Draw  ';
      }
      else if($playerthrows == 'rock ' &amp;&amp; $Computer == 'scissors'){
      echo 'You Win!';
  }
      else if($playerthrows == 'rock' &amp;&amp; $Computer == 'paper'){
      echo  'You Lose! ';
  }
      else if($playerthrows == 'scissors' &amp;&amp; $Computer == 'rock'){
      echo  ' You Lose! ';
  }
      else if($playerthrows == 'scissors' &amp;&amp; $Computer == 'paper'){
      echo ' You Win!' ;
  }
      else if($playerthrows == 'paper' &amp;&amp; $Computer == 'rock'){
      echo 'You Win!';
  }
      else if($playerthrows == 'paper' &amp;&amp; $Computer == 'scissors'){
      echo 'You Lose!' ;
  }
  
  ?&gt;      
  
  
  &lt;/body&gt;
  </code></pre>
  
  <p>I know these mistakes are probably really noob level but it'd be appreciated if any one can help</p>