#Setting up User Information
$filename="$handle";
$fpr1=fopen($filename, "w");
fwrite($fpr1, $handle." ".$home." ".$mobile." ".$email." ".$password2." No");
fclose($fpr1);
#Setting up user in playerlist
$filename="playerlist";
$fpr2=fopen($filename, "a");
fwrite($fpr2, $handle." ");
fclose($fpr2);
#Adding user to the playerlist
$filename="playerlist";
$fpr3=fopen($filename, "r");
for($i = 1; $i <= 10; $i++) {
fscanf ($fpr3, "%s\n", $player[$i]);
}
fclose ($fpr3);
Those Three(3) sections, all work together when someone enters info into a register form (previous page), this ino you see is on the playerlist form...
#1 - Adds ALL info entered into a file
#2 - Enters their Handle (nickname) into a file called playerlist
#3 - Is meant to show the players that have signed up... but it only shows the first...
in the playerlist.php where the players are meant to show up, i have put:
$player[1]
$player[2]
but only player1 shows... and the rest dont.... why ?
and yes, i have put gaps in the playerlist file..
like:
bob jane etc...
so it knows were to create the next var...
this is a big one, and thankyou soooo much to ever can help