thread); $post->update($_POST['content']); header('Location: thread.php?id='.$thread->id); } doHeader('Forum'); $logged_in_user = get_logged_in_user(); $post = getPost($_GET['id']); if ($logged_in_user->id != $post->user) { // Can't edit other's posts. echo "You are not authorized to edit this post."; exit(); } ?>

Edit Post
Forum

Edit Your Post
Message content