= 1) { $v = array(); foreach ($tags as $tag) { $v[] = "($id, '" . escs($tag) . "')"; } sql("INSERT INTO blog_tags(post, tag) VALUES " . implode(',', $v)); } header("Location: view-blog-$id"); die(); } } $title = "Post to blog"; $fields = array( array("label" => "Title : ", "name" => "title", "value" => $post_title), array("label" => "Tags ", "name" => "tags", "type" => "text", "value" => $post_tags), array("label" => "Text : ", "name" => "text", "type" => "textarea", "value" => $post_text), ); $validate = "Post entry"; require("tpl/general/form.php");