Can PHP include work for only a specified portion of a file?
<p>I have a PHP include that inserts an html form into another html form. When the form gets included I now have two form headers. Is there a php tag I could use that would allow me to...</p>

<pre><code>&lt;form id="orderform"&gt;

&lt;!-- &lt;?php for the include FROM here?&gt; --&gt;

PROD:&lt;input class="ProductName" type="text" size="75"&gt;|
Discount:&lt;input class="Discount" type="text" size="3"&gt;|
QTY:&lt;input class="qty" type="text" size="6"&gt;|
Line/Total:&lt;input class="LineTotal" type="text" size="9" disabled&gt;

&lt;!-- &lt;?php for the include TO here?&gt; --&gt;

&lt;/form&gt;
</code></pre>

<p>So the include would go into that file with the form in it and get the specified HTML?</p>

<p>Is this possible?</p>

<h2>EDIT</h2>

<pre><code>&lt;?php 
$dom = new DOMDocument();
$html = 'phptest3.php';
$dom-&gt;loadHTMLFile($html);
$div = $dom-&gt;getElementById("divtagid");
echo $div-&gt;nodeValue;
?&gt;
</code></pre>

<p>This only returns the text. How do I get the HTML form elements in the divtagid?</p>
