I try run loop inside with some elements as for example post form , the idea it´s when the first post send , send the second and third , etc
<?php
$list="1,2,3";
$exp=explode(",",$list);
$b=0;
foreach($exp as $ids)
{ ?>
<form action="" method="post" id="form_2">
<input type="hidden" name="send_end" value="ok" />
</form>
<script>
document.getElementById('form_2').submit();
</script>
<?php
sleep (5);
if ($b=="2")
{
exit("All Send");
}
$b++;
}
The problem it´s send all the same time and don´t works , the idea it´s send first 1 , wait , send 2 , etc , i use sleep but it´s the same , all time work sending all in one time
The question it´s how i can send in loop but sequentially
Regards and thank´s for the help