php中的ewebeditor表单调用
相关参数:<textarea name=content>
模板调用符:$
提交新表单的时候用如下代码,结果完全正常:
<form name="frm_HelpMessageAdd" id="frm_HelpMessageAdd" action="manage.php" method="POST" enctype="multipart/form-data">
<input name="content" type="hidden" id="shopProduct_Intro">
<iframe ID="eWebEditor1" src="other/editor/ewebeditor.php?id=shopProduct_Intro&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
<?php
$action = strtolower($_GET["action"]);
if($action == "do")
{
echo htmlspecialchars($_POST["shopProduct_Intro"]);
}
?>
打开此ID序号进行修改时出现iframe框中无任何内容,修改页面代码如下:
<?php
$value = $htmlspecialchars("content");
?>
<form name="frm_HelpMessageAdd" id="frm_HelpMessageAdd" action="manage.php" method="POST" enctype="multipart/form-data">
<input name="content" type="hidden" id="shopProduct_Intro" value="<?php echo "$value"; ?>">
<iframe ID="eWebEditor1" src="other/editor/ewebeditor.php?id=shopProduct_Intro&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
<?php
$action = strtolower($_GET["action"]);
if($action == "do")
{
echo htmlspecialchars($_POST["shopProduct_Intro"]);
}
?>
相关文档:
PHP运行过程
简单点的
浏览器 -> web服务器 -> php解释器 -> mysql服务器 -> php解释器 -> web服务器 -> 浏览器
大家握几个手
复杂点的 浏览器 -----------------------------> web服务器-> php解释器 -> mysql服务器 ….
PHP运行机制
2009-10-20 ......
PHP trim() 函数
定义和用法
trim() 函数从字符串的两端删除空白字符和其他预定义字符。
语法
trim(str,charlist)
参数 1 str为待操作的字符串,参数 2 charlist 可选,指定了想要去除的特殊符号。
如果第二个参数没给值,预设会去除下列这些字元:
" " (ASCII 32&nbs ......
MYSQL中只有INNODB和BDB类型的数据表才能支持事务处理!其他的类型是不支持的!
$lnk = mysql_connect("localhost", "root", "");
mysql_select_db("test");
mysql_query("BEGIN");
$query = mysql_query("INSERT INTO test VALUES(1, 'yangjun')&quo ......
可以将数组和对象直接存入数据库中的某一字段。
使serialize()是将数组反序列化再存入数据库,序列化话完的数据就是一个字符串。
提取的时候,用unserialize()反序列化取,取出来的还是个数组。
$arr = array('value1','value2','value3');
$str = serialize($arr); //序列化
$new_str = unserialize($temp); //反序列 ......