title: How to pass links with values to pahe2.php
body: <p>This is a fragment of my code, that get all users from Active Directory (some fields). The first column (user_name) is a reference to the page2.php where I can see User profile more detail. The problem is page1.php passes only  last values of the link from the cycle. How can I do that, any dynamic link of the user passes its information. Could you help me? Thanks. $info is an array of LDAP data.</p>
  
  <p><strong>Here is my code:</strong></p>
  
  <pre><code>&lt;?php for ($i=0; $i&lt;$info["count"]; $i++) {             
          $res=$info[$i];
  
      $m_name=$res["displayname"];  
          $m_title=$res["title"];       
          $m_dep=$res["department"];    
          $m_tel=$res["telephonenumber"];
          $m_mail=$res["mail"];
          ?&gt;
  
  &lt;?php echo '&lt;div class="column"&gt;&lt;h5&gt;&lt;a href="user.php" target="_blank"&gt;'.$m_name[0].'&lt;/a&gt;&lt;/h5&gt;&lt;/div&gt;'?&gt;
  &lt;?php echo '&lt;div class="column"&gt;&lt;h5&gt;'.$m_title[0].'&lt;/h5&gt;&lt;/div&gt;'?&gt;
  &lt;?php echo '&lt;div class="column"&gt;&lt;h5&gt;'.$m_tel[0].'&lt;/h5&gt;&lt;/div&gt;'?&gt;
  &lt;?php echo '&lt;div class="column"&gt;&lt;h5&gt;'.$m_tel[0].'&lt;/h5&gt;&lt;/div&gt;'?&gt;
  &lt;?php echo '&lt;div class="column"&gt;&lt;h5&gt;'.$m_mail[0].'&lt;/h5&gt;&lt;/div&gt;'?&gt;
  &lt;?php } ?&gt; 
  </code></pre>