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- ......
<?php
function checkMobile($str)
{
$pattern = "/^(13|15)\d{9}$/";
if (preg_match($pattern,$str))
{
Return true;
}
else
{
Return false;
}
}
$str = checkMobile("15800000001");
......
一、开发成员
a)项目主管
b)页面美工
c)页面开发
d)服务端程序开发
e)系统与数据管理
f)测试与版本控制
二、 网站组开发简明流程
三、 开发工具与环境
a)服务器配置
i. WEB服务器: FreeBSD6.1+Apache2.0+PHP5.0,SVN版本控制服务(仅测试机)。
ii.数据库服务器: WIN2003 server+SQL server 2000+MySQL5.0,CLUS ......
看到IE里面显示“连接成功”的画面时,真的很兴奋。两天的努力没白费。
现在来总结一下,怎么让php与MySQL连接。贴出来,为后来学习的人少点阻力!
我用的是apache+windows+php+MySQL
大体说来有两种方式,一种是旧的面向对过程的方式,需要装载php_mysql.dll;另一种是新的面向对象的方式,需要装载php_mysql ......
1. 建立和关闭连接
1) mysql_connect()
resource mysql_connect([string hostname [:port][:/path/to/socket][,string username] [,string password]])
所有参数都是可选的
举例:
@mysql_connect("localhost", "user", "password")
......