HOI-Seaver
12-18-2003, 12:32 PM
Alright the basic problem comes in a while loop put in the else area of an if : else : endif; It does the print statement right before it and ignores the rest of the code.
if ($seenform != "y") :
print "$form";
else :
print "$manga";
while ( list($key, $val) = each($Char))
{
$filename = "$key.txt";
$fd = fopen ($filename, "a");
$contents = fread ($fd, filesize ($filename));
print "$contents";
fclose($fd);
}
print "$fave $gender";
endif;
if ($seenform != "y") :
print "$form";
else :
print "$manga";
while ( list($key, $val) = each($Char))
{
$filename = "$key.txt";
$fd = fopen ($filename, "a");
$contents = fread ($fd, filesize ($filename));
print "$contents";
fclose($fd);
}
print "$fave $gender";
endif;
