ThinkPHP示例:Ajax表单提交

ThinkPHP示例之:Ajax表单提交

本示例同表单处理,只是改变提示方式为Ajax方式,采用了ThinkAjax类库实现。其他Ajax类库的实现方式类似~
标题:
邮箱:
内容:
输入对应的数字

{$vo.title} [{$vo.email} {$vo.create_time|date='Y-m-d H:i:s',###}]
{$vo.content|nl2br}

示例源码
控制器IndexAction类
highlight_file(LIB_PATH.'Action/IndexAction.class.php');
模型FormModel类
highlight_file(LIB_PATH.'Model/FormModel.class.php');