title: Php: How does form submission work?
body: <p>I am fairly new to PHP. </p>
  
  <p>The code is pretty simple:</p>
  
  <p><code>home.php:</code></p>
  
  <pre><code>&lt;form action="getsentitem.php" method="get"&gt;
     &lt;div  &gt;
     &lt;input  name="query" id="query" class="searchQuery" size="20" value="" type="text" autocomplete="off"&gt;
     &lt;input id="searchButton" value="Search" type="submit"&gt;
     &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><code>getsentitem.php:</code></p>
  
  <pre><code>&lt;?php
  if (isset($_GET['query']))
  $query = $_GET['query'];
  
  ?&gt;
  </code></pre>
  
  <p>Question:
  The above code will simply give me whatever I enter in the text box which is there in <code>home.php</code>. Now, is there any way through which I can get the values of the other attributes of the text box? Like, is it possible to get the id of the textbox or its size through this method.</p>