insert_category.php
来自「php源码 php源码参考」· PHP 代码 · 共 28 行
PHP
28 行
<?php// include function files for this applicationrequire_once('book_sc_fns.php'); session_start();do_html_header('Adding a category');if (check_admin_user()){ if (filled_out($HTTP_POST_VARS)) { $catname = $HTTP_POST_VARS['catname']; if(insert_category($catname)) echo "Category '$catname' was added to the database.<br />"; else echo "Category '$catname' could not be added to the database.<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();?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?