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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display certain contents of an array, selected by checkbox

Status
Not open for further replies.

kusarigama

Technical User
Apr 24, 2002
45
0
0
DE
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=&quot;checkbox&quot; name=emails[] value=<?echo $i;?>><?echo $emails;?><br>
<?
if(isset($email_sel)) // submit button
{
print &quot;<br>&quot;.$i;
}
}



}
fclose($fp);
 
I'm using PHp 4.2 ---webserver:puretec OS: WinXP.
I test it via //locahost/..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top