title: HTML form not submitting input values with post/get method
body: <p>This a section of my html form:</p>
  
  <pre><code>&lt;form method ="post" action="switch.php"&gt;
      &lt;p class="option"&gt;Favorite Book: &lt;input type = "text" name = "book" id="book" size = "25" /&gt; &lt;/p&gt;
      &lt;input class="submit" type="submit" name="submit" value="SUBMIT" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is a section of my php code:</p>
  
  <pre><code>if(isset($_POST['book'])){
      $person1book=$_POST['book'];
      $person2book=$_POST['book'];
  }else{
      $person1book="Pride and Prejudice";
      $person2book="Crime and Punishment";
  }
  </code></pre>
  
  <p>I basically have a form that needs to change a variable's value if the input is not left blank. </p>
  
  <p>I've tried:</p>
  
  <ul>
  <li>The get method with no luck</li>
  <li>$_REQUEST with no luck</li>
  </ul>
  
  <p>It just appears as if the input form is not submitting anything. </p>
  
  <p>If you are seeing anything that I am missing, I would greatly appreciate the help!</p>
  
  <p>*edit with more explanation:</p>
  
  <p>On one page I have a form where the user has an option to choose a person and fill out their favorite book. Then I post it to switch.php where the variables change if the form input is filled out. Switch.php also redirects the page to another page that depends on which person the user picked that displays their favorite book. Each person has a default favorite book, but can be changed if the user fills out the form, except whenever I fill out the form it always displays the default value. </p>