Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi all, I'm storing contents of

Status
Not open for further replies.

kusarigama

Technical User
Apr 24, 2002
45
DE
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top