Create writechapter.php