title: Change php variable depending on what selected in dropdown
body: <p>I want to create a page on my website which will be used to view users profiles. When the user first visits the page I want it show their own profile. But I want to put in a drop-down menu or something which will give them the ability to view other users profiles. I haven't started creating this yet however I just want to know if what I want to achieve is possible with what I have planned.</p>
  
  <p>What I am thinking of doing is have a php variable which would be <code>$UserID</code> or something.</p>
  
  <p>To start with <code>$UserID</code> would be equal to the current user viewing the page's id e.g. 1 for Admin.</p>
  
  <p>Then I would get all the data from the database through that variable <code>$UserID</code>.</p>
  
  <p>But in order to view other user's profiles I want to change that <code>$UserID</code> variable depending on which user's name is selected in the dropdown.</p>
  
  <p>e.g. If dropdownuser = Test3 then <code>$UserID</code> = 5. </p>
  
  <p>Then it would display Test3's user profile.</p>
  
  <p>Have I got this correct?? </p>