Posted by: " . $name . "
" . $post . "

Time: " . $time . "
IP: $ip

"); fclose($fp); } if ($addtotop == "1" ) { // Get all the current entries and put it in a string $att1 = "db/posts.php"; $att2 = fopen ($att1, "rb"); $currententries = fread ($att2, filesize ($att1)); fclose ($att2); // Writes the user's post to a file $fp = fopen("db/posts.php", "w+"); fputs($fp, "

Posted by: " . $name . "
" . $post . "

Time: " . $time . "
IP: $ip

".$currententries); fclose($fp); } // Thank user for post echo "Added Post Sucessfully
View Guestbook

"; } else { require "templates/post_form.inc"; } // Include the Footer require "templates/footer.inc" ?>