Willie wrote:
[..]erverything i try either comes up with a blank space in the text file, or it prints the word array. any suggestions?[..]
$username[]=$user_name;
$password[]=$pass_word;
[..]
fwrite ($fopen, \"$username\t$password\n\");
fclose ($fopen);
you have to call string context of that array - in this case i recommend just calling proper element: $username[0] and $password[0]. so:
fwrite ($fopen, \"$username\t$password\n\");
u should change into
fwrite ($fopen, \"$username[0]\t$password[0]\n\");
if one of the arrays had more then on element you have to join the elemnts. to do so use the join() function - example:
$filecontent = join ( \"::\", $usernames);
and then
fwrite($pointer, $filecontent);
ps
read more on basic datatypes in php manual and on converting one type into another.