PHP array only using the first line of text area for 'Get Meta Tags' Function
<p>I am fairly new to PHP so please bear with me :)</p>

<p>What I am trying to do if place URL's into a text area, then pull in the meta data for each.</p>

<p>I have made the script, but when I place more then one URL into the text area it only returns data for the last URL entered, I thought maybe you guys can help me :)</p>

<pre><code>&lt;form method="POST"&gt;
&lt;textarea name="TAData"&gt;
&lt;/textarea&gt;
&lt;input type="submit" value="submit"/&gt;
&lt;/form&gt;

&lt;div id="checkboxes"&gt;
&lt;input type="checkbox" name="vehicle" value="PR" /&gt; Show me the PR&lt;br /&gt;
&lt;input type="checkbox" name="vehicle" value="KW Tag" /&gt; Show me the KW tag&lt;br /&gt;
&lt;input type="checkbox" name="vehicle" value="Title Tag" /&gt; Show me the Title tag&lt;br /&gt;
&lt;/div&gt;
&lt;div id="checkboxes"&gt;
&lt;input type="checkbox" name="vehicle" value="1stH1" /&gt; Show me the 1st H1&lt;br /&gt;
&lt;input type="checkbox" name="vehicle" value="2ndH1" /&gt; Show me the 2nd H1 tag&lt;br /&gt;
&lt;input type="checkbox" name="vehicle" value="SeedKW" /&gt; Show me Seed KW's&lt;br /&gt;
&lt;/div&gt;

&lt;div id="nofloat"&gt;&lt;/div&gt;

&lt;?php

//make the array 
$TAarray = explode("\n", strip_tags($_POST['TAData'])); 

foreach ($TAarray as $key =&gt; &amp;$line) { $line = trim($line); }
            // get the meta data for each url
            $tags = get_meta_tags($line);

unset($tags["content-type"]);
unset($tags["page-type"]);
unset($tags["page-topic"]);
unset($tags["audience"]);
unset($tags["content-language"]);       

            echo '&lt;tr&gt;';
            foreach ($tags as $meta)        
            {
                    echo '&lt;td&gt;' . $meta . '&lt;/td&gt;';
            }
            echo '&lt;/tr&gt;';

?&gt;
</code></pre>
