Hello all, Im a newbie, I started a project a long time ago, for my website to have a members area, I downloaded the main auth script, and i made my own profile page were people can update thier selections of guns ( Its a game website ) by selecting checkboxes and submitting it. but im stuck the bit of php i was using is not going to work for what i want now :/
I dont have real content on it yet so i can display the 'member section' to you all.
http://www.dumbppl.com/~chkdsk/tm/auth/members/index3.php?go=profile
http://www.dumbppl.com/~chkdsk/pro.phps
Is the source for the profile thingie
Now when a user clicks submit it supposed to write the users username.txt to a file to be included on a different page
This is what i was using to write the file, not only did it stop working, its not going to work if i want it to be specific to each username (which the auth script will take care of)
I need to do this w/o mysql cause i dont have a server
Here is the code at the bottom handling the file
<?
if ($write_file == "yes") {
$text = "";
for ($i = 0; $i < 66; $i++)
if (!Empty($_POST["g$i"]))
$text .= $_POST["g$i"];
$filename="profiles.txt";
$file = fopen($filename, "w");
fputs($file, $text);
fclose($file);
}
?>
If this is too much or to lame im sorry but please help if you can
Thanks alot php people