title: How to hide query strings from url in php?
body: <p>Im trying to make a message system and when the receiver is reading a message theres a link to reply the message, as follow:</p>
  
  <pre><code>&lt;a href=mail.php?action=compose&amp;toid='".urlencode($viewrow['sender'])."'&amp;subject='RE:+".urlencode($viewrow['subject'])."'&amp;message=".urlencode($viewrow['message'])."&gt;Reply&lt;/a&gt;
  </code></pre>
  
  <p>The sender, subject and message are being retrieved from mysql.</p>
  
  <p>The user is seeing something like:</p>
  
  <pre><code>http://www.somesite.com/author/mail.php?action=compose&amp;toid='8'&amp;subject='RE:+test+subject'&amp;message=test+message
  </code></pre>
  
  <p>What i need to know is if theres a way to hide the subject and the message from reply url, so the user will see on address bar only:</p>
  
  <pre><code>http://www.somesite.com/author/mail.php?action=compose&amp;toid='8'
  </code></pre>
  
  <p>This is how the subject, message and id is being retrieved from db.</p>
  
  <pre><code>//view message
  if (isset($_GET['action']) &amp;&amp; $_GET['action'] == inbox) { 
          if(isset($_GET['viewid'])) { 
              $viewid = $_GET['viewid'];
      /*      $viewsql = "select * from mail where reciever='".$userid."' and mail_id=".$viewid; */
              $viewsql = "select * from mail, authors where (mail.sender = authors.id) and (mail.reciever = '".$userid."') and (mail.reciever_deleted ='0') and mail.mail_id = ".$viewid;
              $viewquery = mysql_query($viewsql,$connection) or die(mysql_error());
              $viewrow = mysql_fetch_assoc($viewquery);
              if ($viewrow['reciever'] == $userid) { //check if user is the reciever
              } else { 
                  header('Location: mail.php?action=inbox');
                  exit; 
              } 
              echo "&lt;h3&gt;Lendo mensagem particular da Caixa de Entrada&lt;/h3&gt;";
              echo "&lt;table align=\"center\" width=\"75%\" class=\"sortable\"&gt;
                      &lt;tr&gt;
                          &lt;td colspan='2' style=\"text-align:center;font-weight:normal;\"&gt;Mensagem particular enviada por ".$viewrow['displayname']." em ".date('d/m/y',strtotime($viewrow['created_at'])).".&lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                          &lt;td colspan='2'&gt;
                              &lt;img style=\"float:left;padding: 5px 15px 5px 2px;width: 65px;\" src=\"".$viewrow['gravatar']."\" alt=\"".$viewrow['displayname']."\" title=\"".$viewrow['displayname']."\" /&gt;
                              &lt;div style=\"padding: 8px 5px 2px;\"&gt;&lt;span style=\"font-size:1.6em;\"&gt;&amp;#8594; &lt;/span&gt;&lt;b&gt;".$viewrow['subject']."&lt;/b&gt;&lt;/div&gt;
                              &lt;div style=\"padding: 8px 30px 8px 85px;\"&gt;".nl2br($viewrow['message'])."&lt;br /&gt;&lt;/div&gt;
                              &lt;span style=\"float:right;\"&gt;
                                  &lt;a href=mail.php?action=compose&amp;toid='".urlencode($viewrow['sender'])."'&amp;subject='RE:+".urlencode($viewrow['subject'])."'&amp;message=".urlencode($viewrow['message'])."&gt;Responder&lt;/a&gt; | &lt;a href=javascript:confirmDelete('mail.php?action=inbox&amp;deleteid=".$viewid."')&gt;Apagar&lt;/a&gt;
                              &lt;/span&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/table&gt;";
  
              // mark as read by reciever
              $query="update mail set mail_status='read' where reciever = '$userid' and mail_id = '$viewid'"; 
              mysql_query($query,$connection) or die(mysql_error());
          }                   
      }elseif (isset($_GET['action']) &amp;&amp; $_GET['action'] == outbox) { ...
  </code></pre>
  
  <p>I know i need to use post, but how?</p>
  
  <p>I tried but could not make it work.</p>
  
  <p>Sorry for my stupidity..</p>