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"]);
}
?>
相关文档:
操作系统centos 5.3,php 5.1.6, xdebug 2.0.5。
主要参考文档:
xdebug的安装文档:http://xdebug.org/docs/install。
xdebug的远程调试配置文档:http://xdebug.org/docs/remote
Using vim and xdebug DBGp for debugging Drupal (or any PHP application):
http://2bits.com/articles/using-vim-and-xdebug- ......
各大网络编程语言的10年奋战,各有所长、各领千秋。今日对于我们的网站编程语言:ASP、JSP、PHP、ASP.NET进行实际应用统计:
ASP:50%
JSP:10%
PHP:20%
ASP.NET:20%
根据以上统计来做一下讨论。ASP技术如今天可以说已成为过去,但仍占市场的50%,因为当时ASP技术的兴起,对大部分编程 ......
PHP trim() 函数
定义和用法
trim() 函数从字符串的两端删除空白字符和其他预定义字符。
语法
trim(str,charlist)
参数 1 str为待操作的字符串,参数 2 charlist 可选,指定了想要去除的特殊符号。
如果第二个参数没给值,预设会去除下列这些字元:
" " (ASCII 32&nbs ......
1. 建立和关闭连接
1) mysql_connect()
resource mysql_connect([string hostname [:port][:/path/to/socket][,string username] [,string password]])
所有参数都是可选的
举例:
@mysql_connect("localhost", "user", "password")
......
<?php
/*
* Created on 2008-10-25
*
* developer by Alex.do QQ:20779512
* PHP 5.0
*/
class mdbClass {
var $dbPath = 'database/#123123#.mdb'; //数据库路径
var $tabName; & ......