kusarigama
Technical User
Hi all,
I'm storing contents of a textfile in the array 'emails[]'
and try to output $_POST['emails'];
The array emails is empty and I don't know what I did wrong
Can anyone help me ?
$i=0;
while(!feof($fp))
{
$emails = fgets($fp,620)
<input type=checkbox name=emails[] value=$i>
$i++;
}
If(isset($_POST['send']))
{
for($i=0; !feof($fp); $i++)
{
$emails = fgets($fp,620);
if(in_array($i, $_POST['emails']))
print $emails;
}
}
Olli
I'm storing contents of a textfile in the array 'emails[]'
and try to output $_POST['emails'];
The array emails is empty and I don't know what I did wrong
Can anyone help me ?
$i=0;
while(!feof($fp))
{
$emails = fgets($fp,620)
<input type=checkbox name=emails[] value=$i>
$i++;
}
If(isset($_POST['send']))
{
for($i=0; !feof($fp); $i++)
{
$emails = fgets($fp,620);
if(in_array($i, $_POST['emails']))
print $emails;
}
}
Olli