For each row found in array, echo html template and edit HTML according to row info
<p>I have a array ($infostack) which contains all my $rows using the code: </p>

<pre><code>$infostack[] = $row;
</code></pre>

<p>I'm rather a newbie at this HTML Parsing thing, so I need assistance on making it so that for each row found in $infostack(I've already got that, see code below) it would echo the <strong><em>BODY</em></strong> of a HTML template(License-2011.html) and edit the values of some tags(see code below for what I'm talking about) using PHP Simple HTML DOM Parser and keep looping around until it's finally finished.</p>

<p>CODE:</p>

<p>The tags required changing have different name tags but still remain in the A element.
for example: </p>

<pre><code>&lt;a name=NAME&gt;&lt;/a&gt;
</code></pre>

<p>The code I've got to find each row in the array is:</p>

<pre><code>foreach ($infostack as $row) {

}
</code></pre>

<p>Please excuse me if I don't make much sense, I'm not too good at explaining this type of stuff.</p>
