Ok Ive worked a bit more and gotten thus far. The problem I keep encountering is that $username keeps coming empty instead of storing the logged-in visitors username, instead a new folder is created titled $username. 
And $username is supposed to hold a value because I use it to display a welcome message on the same page. And I've provided a+ as the paremeter, yet no file is being created. I just get error msg that file does not exist.
Code:
<?php
mkdir('$username', 0777);
if($_POST['Submit']){
$url = $_SERVER['REQUEST_URI'];
$open = fopen("$username/$url.txt","a+");
$text = $_POST['update'];
fwrite($open, $text);
fclose($open);
echo "My notes:<br />";
$file = file("$username/$url.txt");
foreach($file as $text) {
echo $text;
}
}else{
$url = $_SERVER['REQUEST_URI'];
$file = file("$username/$url.txt");
echo "<form action=\"".$PHP_SELF."\" method=\"post\">";
echo "<textarea Name=\"update\" cols=\"50\" rows=\"10\">";
foreach($file as $text) {
echo $text;
}
echo "</textarea>";
echo "<input name=\"Submit\" type=\"submit\" value=\"Update\" />\n
</form>";
}
?>
Best Regards
~Spine
Bookmarks