to return an html result in loop in a function to a different page
<p>I have a class</p>

<pre><code>class files{

  function displayhtml(){?&gt; 

select name="df"&gt;

for($i=0;$i&lt;10;$i++){?&gt;

         &lt;option value="&lt;?php echo "$i"; ?&gt;"&gt;&lt;?php echo "$i"; ?&gt;&lt;/option&gt;&lt;?php
        }?&gt;&lt;/select&gt;&lt;?php
  }
}
?&gt;
</code></pre>

<p>I have a file newgetfile.php, i need to display this drop down in newgetfile.php by calling this function in newgetfile.php</p>
