title: Open a new box/window on selecting a particular value
body: <p>I have a list of users that is generated dynamically.</p>
  
  <pre><code>$sql0="SELECT * FROM users";
  $result0 = mysqli_query($con,$sql0);
  if(mysqli_num_rows($result0)&gt;0)
      {
          while($row0=mysqli_fetch_assoc($result0))
              {   
                  echo $row0['name'];
                  echo "&lt;br&gt;";
              }
      }
  </code></pre>
  
  <p>The o/p would contain list of users 
  eg:</p>
  
  <pre><code>user_one
  user_two
  user_three
  </code></pre>
  
  <p>What i want is that if i click on any one user from the above list a chat window should get opened (as it is being done in many sites nowadays) i have a window created here <a href="https://jsfiddle.net/learner001/nmrhLpn9/" rel="nofollow">@fiddle</a>. but what i am not able to do is that </p>
  
  <p>i wish to carry the userid of the selected user to this new window and display the data related to that selected user, such as name, image etc .</p>
  
  <p>And i wish to fix the chat box to the end of the screen as it is done in fb, so that the user can open multiple boxes</p>
  
  <p>can anyone please tell how it can be done</p>