title: PHP: Calling a specific name in a form from another file
body: <p>So I am having trouble setting a name in a form as a variable. I am trying to do this on another page but without using the include, require functions cause when I use them it fetches the whole other file. My question is, is there a way to call a specific name in another file without fetching the whole file. Here is an example of what I am truing to do. </p>
  
  <p>This is fetching the form names "Mitsubishi1", "Lancer1" and "2000 - 2007". It obviously will not work because those names have been undefined in the current file. It is also fetching the relevant data from the database.</p>
  
  <pre><code>if ($selectMake1 == $_POST["Mitsubishi1"] &amp;&amp; $selectModel1 == $_POST["Lancer1"] &amp;&amp; $selectYear1 == $_POST["2000 - 2007"])
   $fetchMitFirst = mysql_query("SELECT Max_Speed FROM CarSpecifications WHERE id=2")
  </code></pre>
  
  <p>This is in the other file where I want to fetch these names but without fetching the whole file.</p>
  
  <pre><code>&lt;option name="Mitsubishi1"&gt;Mitsubishi&lt;/option&gt;
  &lt;option name="Lancer1"&gt;Lancer&lt;/option&gt;
  &lt;option name="2000 - 2007"&gt;2000 - 2007&lt;/option&gt;
  </code></pre>
  
  <p>If anyone could help that would be greatly appreciated.</p>
  
  <p>Thanks.</p>