and just create headers for each column....
and use commas or spaces to separate the values or you'll be screwed trying to use those details to log someone in....
for spaces
//username
if (strlen($POST['username']<>20 )){
$addspaces=""
for($x;$x<(20-strlen($POST['username'])), $x++){
$addspaces=$addspaces." "
}
$username=$POST['username'].$addspaces
}
//password
if (strlen($POST['password']<>20 )){
$addspaces=""
for($x;$x<(20-strlen($POST['password'])), $x++){
$addspaces=$addspaces." "
}
$password=$POST['password'].$addspaces
}
// Try to open the file for writing
if ($fp = fopen("$username.txt","w",TRUE))
{
fwrite($fp,$username.$password);
fclose($fp);
}
else
die("Couldn't open $username.txt for writing!");
?>
this creates a file with columns 1-20 filled with the username
columns 21-41 filled with the password. this the best method for making a readable text file and in a standard format
commas
fwrite($fp,$username.",".$password.",".$email.",".$cstrike.",".$mohaa.",".$ut.",".$bf1942);
using commas is also a good method and is not space dependant if your users use long names...can be easily read into php using the explode function to take the line apart.
hth