Automatically open new window whilst passing variables
Posted: Tue Feb 10, 2009 4:29 am
Hello,
I am scratching my head to find a solution in PHP where by I can open a new browser in a foreach loop for each instance whilst passing variables. This needs to happen automatically, no input by the user so something like this:
foreach ($array as $data)
{
echo "<a href='./code.php?data=$data'>link</a>";
}
wouldnt work as it requires a click!
Is there anything in PHP that can get around this, or do I have to use javascript??
Many thanks in advance
I am scratching my head to find a solution in PHP where by I can open a new browser in a foreach loop for each instance whilst passing variables. This needs to happen automatically, no input by the user so something like this:
foreach ($array as $data)
{
echo "<a href='./code.php?data=$data'>link</a>";
}
wouldnt work as it requires a click!
Is there anything in PHP that can get around this, or do I have to use javascript??
Many thanks in advance