please can someone help me out?
$i=0;
while ($i < 10)
{
$Variable1 = $1;
$Variable2 = “Hello”;
/* i wanna pass these variables to another php file
say "http://localhost/receiver.php
Once the variables are recieved in the receiver.php, its gonna pass them to an sms gateway
header('Location: http://www.address.com/file.php?var1 = ' . $Variable1 . '&var2=' . $Variable2 '); */
$i++;
}
the problem i am facing is that, after the first set of variables is gone, the header function overrides the existing
hence the rest of the loop does not get to execute
is there a way out with php alone?
thank you.