= 1) { $v = array(); foreach ($tags as $tag) { if ($tag == "") continue; $v[] = "($postid, '" . escs($tag) . "')"; } sql("INSERT INTO blog_tags(post, tag) VALUES " . implode(',', $v)); } header("Location: view-blog-$postid"); die(); } } $title = "Edit : " . $post['title']; $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 = "Edit post"; require("tpl/general/form.php");