title: Reply to a message
body: <p>I have the following code:</p>
  
  <pre><code>&lt;select name="to" class="combo"  value='
              &lt;?php 
              if(isset($_POST['reply'])) 
              { 
                  echo "&lt;option value='$reply'&gt;$reply&lt;/option&gt;";
              }
              ?&gt;
              ' /&gt;
              &lt;?php
  
              $q = $database-&gt;selectAllUsersNotMe();
              while($row=mysql_fetch_assoc($q))
              {
                  $u=$row['username'];
                  echo "&lt;option value=\"$u\"&gt;$u&lt;/option&gt;";
              }
              ?&gt;
              &lt;/select&gt;
  </code></pre>
  
  <p>What this does is produce a combo box with a dropdown for all users on my site excluding the user sending the message.</p>
  
  <p>I am trying to add a reply element to the message.
  When i click reply, i use the following code:</p>
  
  <pre><code>                &lt;? $reply = $_POST['rfrom']; ?&gt;
  
  
          &lt;form name='reply' method='post' action='/newmessage.php'&gt;
          &lt;input type='hidden' name='rfrom' value='&lt;?php echo $pm-&gt;messages[0]['from']; ?&gt;' /&gt;
          &lt;input type='hidden' name='rsubject' value='Re: &lt;?php echo $pm-&gt;messages[0]['title']; ?&gt;' /&gt;
          &lt;input type='hidden' name='rmessage' value='[quote]&lt;?php echo $pm-&gt;messages[0]['message']; ?&gt;[/quote]' /&gt;
          &lt;input type='submit' name='reply' value='Reply' /&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>The values are correct and definately pass the information using POST.</p>
  
  <p>On the initial piece of code I provided, how can I alter this so the username that I am replying to is selected when I am replying, if not, the usernames are just listed.
  Thanks</p>