Ok I am only having one problem. Here is the code:
<?php
$myfile = “bio.txt”;
if (isset($_POST[‘ta’])) {
$newData = nl2br(htmlspecialchars($
$handle = fopen($myfile, “w”);
fwrite($handle, $newData);
fclose($handle);
}
?>
This is the main line I’m having an issue with: ” [B]$myfile = “bio.txt”;
I would like to automatically add this “[B]bio.txt
For example, It works if I do it this way: ” [B]$myfile = “user/johndoe/bio.txt”;
” [B]$myfile = “user/greg/bio.txt”;
” [B]$myfile = “user/tammy/bio.txt”;
What I want is something like this ” [B]$myfile = “user/$u/bio.txt”;[B]$myfile = “user/$username/bio.txt”;