数据库用的是sqlite $db=sqlite_open("sphpcms.sqlite");
sqlite_query($db,"insert into sphp_news (title,content) values('".$title."','".$Content."');");
sqlite_close($db);
$step=2;
$smarty->assign('step',$step);
$smarty->display('mod_article.tpl');-------------------------------------------------------------------
$resultc=sqlite_query($dbc,"select id,title,content from sphp_news where id ='".$id."';");
sqlite_query($db,"insert into sphp_news (title,content) values('".$title."','".$Content."');");
sqlite_close($db);
$step=2;
$smarty->assign('step',$step);
$smarty->display('mod_article.tpl');-------------------------------------------------------------------
$resultc=sqlite_query($dbc,"select id,title,content from sphp_news where id ='".$id."';");
===========
你把type=hidden类型改为type=text,框内值显示是否正确?
改一下试试
<input type="hidden" name="Content" value="asdffffffffffffffffffffffffffffffff<IMG src='http://localhost/Sphpcms/edit/uploadfile/20070128100644.jpg'>" />
" size="45" /> 求解指点,在试
是传值的方式?