title: Can I have multiple sections in a php file and call them individually to another php file depending up on requirements
body: <p>I am trying to create a php page with html codes. I managed to call one php file to another php file. But now I am trying to have one php file with multiple sections with different kind of inputs and have them called separately as and when needed. I'm a new bee to php so please apologize if my question sounds silly.
  In my webpage, I have <code>country.php</code> file with</p>
  
  <pre><code>&lt;option value="AUS"&gt;Australia&lt;/option&gt;
  &lt;option value="IND"&gt;India&lt;/option&gt;
  &lt;option value="US"&gt;United State&lt;/option&gt;
  </code></pre>
  
  <p>In my second page where I have form controls, I am using a following code to call above php file which works fine.</p>
  
  <pre><code>Country &lt;select&gt; &lt;?php include "country.php"; ?&gt; &lt;/select&gt;
  </code></pre>
  
  <p>But this forces me to create separate files for each drop down items. 
  Is it possible to have one file like <code>selections.php</code> and call the items separately to the from controls in another page ? </p>
  
  <pre><code>selection.php
  &lt;!-- Countries --&gt;
  
          &lt;option value="AUS"&gt;Australia&lt;/option&gt;
          &lt;option value="IND"&gt;India&lt;/option&gt;
          &lt;option value="US"&gt;United State&lt;/option&gt;
  
  
  &lt;!-- Designation --&gt;
  
  
          &lt;option value="mgr"&gt;Manager&lt;/option&gt;
          &lt;option value="amgr"&gt;Asst. Manager&lt;/option&gt;
          &lt;option value="supr"&gt;Supervisor&lt;/option&gt;
  
  
  &lt;!-- Departments --&gt;
  
          &lt;option value="it"&gt;IT&lt;/option&gt;
          &lt;option value="finance"&gt;Finance&lt;/option&gt;
          &lt;option value="oadmin"&gt;Office Admin&lt;/option&gt;
  
  
  
  form.php
  
  Country &lt;select&gt; ??? &lt;/select&gt;
  Designation &lt;select&gt; ??? &lt;/select&gt;
  Department &lt;select&gt; ??? &lt;/select&gt;
  </code></pre>