a.php
<pre class="c" name="code"><?php
$a = array("allen","bill","john");
header('Location: b.php?a=' . implode(',', $a));
?>
b.php
<pre class="c" name="code"><?php
$a = explode(',', $_GET['a']);
echo <<< EOB
<script>
p1 = window.open('about:blank');
p2 = window.open('about:blank');
p3 = window.open('about:blank');
p1.document.write('{$a[0]}');
p2.document.write('{$a[1]}');
p3.document.write('{$a[2]}');
</script>
EOB;
?>