【php开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了php开源代码-edit_category.php的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<?php
// include function files for this application
require_once('book_sc_fns.php');
session_start();
do_html_header('Updating category');
if (check_admin_user())
{
if (filled_out($HTTP_POST_VARS))
{
if(update_category($HTTP_POST_VARS['catid'], $HTTP_POST_VARS['catname']))
echo 'Category was updated.<br />';
else
echo 'Category could not be updated.<br />';
}
else
echo 'You have not filled out the form. Please try again.';
do_html_url('admin.php', 'Back to administration menu');
}
else
echo 'You are not authorised to view this page.';
do_html_footer();
?>