<p>title: <input name="post_title" type="text" value="<?= $post_title ?>"></p>
<p>slug: <input name="post_slug" type="text" value="<?= $post_slug ?>"></p>
<p>date: <input name="post_date" type="text" value="<?= $post_date ? date('Y-m-d H:i:s', $post_date) : "" ?>"></p>
+<p>draft: <input name="post_is_draft" type="checkbox" value="draft" <?= $post_is_draft ? "checked" : "" ?>></p>
<p><textarea name="post_data" cols="60" rows="40"><?= $post_data ?></textarea></p>
<p><input type="submit" value="update"></p>