title: Do I need to prefix the input variables for two HTML forms in same page
body: <p>I'm a bit confused of do I need to prefix form input variables with i.e. ('<code>car_</code>', or '<code>bike_</code>' corresponding to '<code>car_make</code>', '<code>bike_make</code>') or can I use same template for both forms without prefixing variables. And if so, do I still need to prefix the 'submit' field, or having different form name is enough to avoid data collision.</p>
  
  <p>I have these two HTML forms on the same page:</p>
  
  <pre><code>&lt;form action="" name="car_search_form" method="POST"&gt;
  &lt;input type="hidden" name="make" value="Audi" /&gt;
  &lt;input type="submit" name="car_do_search" value="Search Car" /&gt;
  &lt;/form&gt;
  &lt;form action="" name="bike_search_form" method="POST"&gt;
  &lt;input type="hidden" name="make" value="Schwinn" /&gt;
  &lt;input type="submit" name="bike_do_search" value="Search Bike" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>So, in the end I want to get correct value for <code>$validCarMake</code> via this code:</p>
  
  <pre><code>if(isset($_POST['car_do_search']))
  {
       $paramCarMake = isset($_POST['make']) ? sanitize_text_field($_POST['make']) : '';
       $validCarMake = esc_sql($paramCarMake); // For SQL queries only
       // TODO: Add data saving to database
  }
  </code></pre>
  
  <p>Also, I want to understand the decision process of PHP engine. How it does deside which variable to choose - how it know on which button I clicked, and why not it does just submit all forms on the page? Also, if there would be any difference if I'd use "GET" method instead of "POST" besides that the one does put the variable values to URL? And how does the GET case it would process attached image to form submit then (as the maximum URL lenght is 255 chars as I know, and i.e. JPEG 100 kiB image contains thousands of chars. I'm asking this, because I also want to allow not just have that search on site's home page, but also allow to make search from a separate website's some kind of widget.</p>
  
  <p>And the last question - if the HTML form processing differs somehow in PHP 7.X compared to PHP 5.X (i.e. PHP 5.4). I means does it caches somewhere the data, does it sends over the internet the attached images of the both forms and consumes network and server data, or it submit's only the data of the form on which I clicked the button.</p>