title: Labelling PHP form fields in the input/echo line
body: <p>I have this code from my site <a href="http://www3.londonmet.ac.uk:8008/~iia0014/userdetails.php" rel="nofollow">http://www3.londonmet.ac.uk:8008/~iia0014/userdetails.php</a></p>
  
  <p>I wanted to know how to correctly format the form nicely giving names for the fields in the same line I echo the database rows so it is clear what is what.
  For example, I tried:</p>
  
  <pre><code>&lt;input value="&lt;?php echo "ID: " . $row["id"]; ?&gt;"&gt;&lt;br&gt;
  </code></pre>
  
  <p>What should I add or remove to make the above line work properly showing: ID: Some id here?</p>
  
  <p>but this concatenated the ID word with the row id itself, inserting the "ID: " inside the form and I wanted it to be outside nicely. I can add a table to the form and give a name for the th's... But is it the only way? Can I just do it the easy way, all in one line to make my code clearer? Plus, can I incorporate the delete and update buttons in an easier way as well, instead of writing a function separately, perhaps a new function on the same line? I am looking for a cleaner code with the least number of lines.</p>
  
  <pre><code>&lt;?php session_start(); ?&gt;
  &lt;?php include "includes/connection.php"; ?&gt;
  
  &lt;?php
  
  $query = mysql_query("SELECT id, username, password, email, name, aim, admin, time,          phone, address
  FROM users 
  WHERE username = '".$_SESSION['myusername']."' ");
  
  
  while($row = mysql_fetch_array($query) ) 
  { 
  
  ?&gt;
  
  &lt;input value="&lt;?php echo $row["id"]; ?&gt;"&gt;&lt;br&gt;
  &lt;input value="&lt;?php echo $row["username"];  ?&gt; "&gt;&lt;br&gt;
  &lt;input value="&lt;?php echo $row['password'];  ?&gt; "&gt;&lt;br&gt;
  &lt;input value="&lt;?php echo $row['email'];  ?&gt; "&gt;&lt;br&gt;
  &lt;input value="&lt;?php echo $row['name'];  ?&gt; "&gt;&lt;br&gt;
  &lt;input value="&lt;?php echo $row['aim'];  ?&gt; "&gt;&lt;br&gt;
  &lt;input value="&lt;?php echo $row['admin'];  ?&gt; "&gt;&lt;br&gt;
  &lt;input value="&lt;?php echo $row['time'];  ?&gt; "&gt;&lt;br&gt;
  &lt;input value="&lt;?php echo $row['phone'];  ?&gt; "&gt;&lt;br&gt;
  &lt;input value="&lt;?php echo $row['address'];  ?&gt; "&gt;&lt;br&gt;
  
  &lt;?php 
  }
  ?&gt;
  </code></pre>