title: Issue With Sending Information From Form
body: <p>EDIT: Solved the issue.  In the php code $q and $q2 did not get query.</p>
  
  <pre><code>$r1 = $db-&gt;query($q);
  $r2 = $db-&gt;query($q2);
  </code></pre>
  
  <p>I'm trying to make a micro blog new feed for a class that I'm in and I am having difficulty sending information from a post to update the like and dislike buttons.  Below is the code for the post;</p>
  
  <pre><code>&lt;form action="Assignment4_Main.php" method="post"&gt;
      &lt;div class="newsFeed"&gt;
          &lt;input type="hidden" name="submitted" value="1"/&gt;
          &lt;a href="Assignment4_Profile.php"&gt;&lt;?php echo $username?&gt;
          &lt;/a&gt;
          &lt;input class="idr" name="postID" type="text" value=&lt;?php echo $postID ?&gt; /&gt;
          &lt;p&gt;
          &lt;?php echo $text?&gt;
          &lt;/p&gt;
          &lt;p&gt;
          Posted: &lt;?php echo $pTime?&gt;
          &lt;/p&gt;
          &lt;input type="image" name="liked" src="Like_Not.png" alt="submit" width="20" height="20" value="1"/&gt;
          &lt;p&gt;
          Likes: &lt;?php echo $likes?&gt;
          &lt;/p&gt;
          &lt;input type="image" name="disliked" src="Dislike_Not.png" alt="Dislike" width="20" height="20" value="1"/&gt;
          &lt;p&gt;
              Dislikes: &lt;?php echo $dislikes?&gt;
          &lt;/p&gt;
          &lt;input type="image" name="reposted"  src="Repost_Not.png" alt="Repost"         width="20" height="20" value="1"/&gt;
          &lt;/br&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Also here is the php code;</p>
  
  <pre><code>&lt;?php 
      if(isset($_POST["postID"])){
      $idPost = ($_POST["postID"]);
  
      $db = new mysqli("host", "username", "password", "username");
      if ($db-&gt;connect_error) {
          die ("Connection failed: " . $db-&gt;connect_error);
      }
  
      $gettingUser = "SELECT * FROM Post WHERE post_id = '$idPost';";
      $r = $db-&gt;query($gettingUser);
      $row = $r-&gt;fetch_assoc();
      $gotID = $row["user_id"];
  
      $r = $db-&gt;query($gettingUser);
      $row = $r-&gt;fetch_assoc();
      $gotLikes = $row["likes"];
      $gotLikes++;
  
      $q = "insert into Likes (user_that_like_id, post_id) values ('$gotID', '$idPost');";
      $q2 = "update Post set likes='$gotLikes' where post_id='$idPost';";
      header("Location: Assignment4_Main.php");
      $db-&gt;close();
      exit();
  }
  ?&gt;
  </code></pre>
  
  <p>As of now I think the issue is there is nothing being sent in the <code>POST</code> variable because if I put an echo after the first if nothing appears to happen.  Where I'm trying to send postID so that I can update the likes and dislikes on the server.</p>