title = $_POST['title']; $post->description = $_POST['description']; //Call the save function. if($post->save()) echo $post->id; }