kusarigama
Technical User
Hi all,
I have a textfile with email addreses. With the following script, I try to display only the selected emails (Checkbox)
It won't work. Can anybody help me ?
Thanx in advance
Olli
$fp = fopen($reader,"r"
while(!feof($fp))
{
$emails = chop(fgets($fp,260));
if($emails == ""
{
continue;
}
for($i=0; $i<count($emails);$i++)
{
?>
<input type="checkbox" name=emails[] value=<?echo $i;?>><?echo $emails;?><br>
<?
if(isset($email_sel)) // submit button
{
print "<br>".$i;
}
}
}
fclose($fp);
I have a textfile with email addreses. With the following script, I try to display only the selected emails (Checkbox)
It won't work. Can anybody help me ?
Thanx in advance
Olli
$fp = fopen($reader,"r"
while(!feof($fp))
{
$emails = chop(fgets($fp,260));
if($emails == ""
{
continue;
}
for($i=0; $i<count($emails);$i++)
{
?>
<input type="checkbox" name=emails[] value=<?echo $i;?>><?echo $emails;?><br>
<?
if(isset($email_sel)) // submit button
{
print "<br>".$i;
}
}
}
fclose($fp);