<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta content="Www.XiaZaiBa.Com" /> <title>无标题 1</title> </head> <body> <form action="<?php echo site_url('article/article_add')?>" method="post"> 标题:<input type="text" value="" /><br /> 内容:<input type="text" value="" /><br /> 添加人:<input type="text" value="" /><br /> 添加时间:系统自动记录<br /> 状态:<input type="radio" value="1" />显示 <input type="radio" value="0" />隐藏<br /> <input type="submit" value="提交" /> </form> </body> </html>
article_mod.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta content="Www.XiaZaiBa.Com" /> <title>无标题 1</title> </head> <body> <form action="<?php echo site_url('article/article_mod')?>" method="post"> 标题:<input type="text" value="<?php echo $title;?>" /><br /> 内容:<input type="text" value="<?php echo $content?>" /><br /> 添加人:<input type="text" value="<?php echo $add_man;?>" /><br /> 添加时间:系统自动记录<br /> 状态:<input type="radio" value="1" <?php if($tag==1)echo 'checked';?> />显示 <input type="radio" value="0" <?php if($tag==0)echo 'checked';?> />隐藏<br /> <input type="submit" value="提交" /> <input type="hidden" value="<?php echo $id;?>" /> </form> </body> </html>