Hi all,
I am trying to display some data from text file with an array.
$filename = "comments.txt";
$filepointer = fopen($filename,"r");
$myarray = file ($filename);
for ($mycount = 0; $mycount < count($myarray); $mycount++ )
{
$aline = $myarray[$mycount];
print $aline ." \n";
}
fclose ($filepointer);
If (if else statement-checks search terms)
print $value
print <input type=\"checkbox\" name=\"$aline\" />";
The check boxes show up but, when a user enters a search term only the relevant data will come up with check boxes, my question is how do I display the data that has been checked on a different PHP file? I know it has to do with
$_POST["$aline"];
but it's not working.