phpcmsmodulesformguideindex.php
$session_storage = 'session_'.pc_base::load_config('system','session_storage');pc_base::load_sys_class($session_storage);
if (isset($_POST['dosubmit'])) {$tablename = 'form_'.$r['tablename'];$this->m_db->change_table($tablename);
if(!empty($_SESSION['code'])) {//判断验证码$code = isset($_POST['code']) && trim($_POST['code']) ? trim($_POST['code']) : showmessage(L('input_code'), HTTP_REFERER);if ($_SESSION['code'] != strtolower($code)) {showmessage(L('code_error'), HTTP_REFERER);}}
phpcms emplatesdefaultshow_js.html
</th><td>{$info['form']} {$info['tips']}</td></tr>{/loop}
<tr><td style="text-align:right;">验证码</td><td colspan="2"><span title="点击更换验证码" style=" cursor:pointer;"><input type="text" id="code" name="code" size="8" class="input-text">{form::checkcode('code_img', '4', '14', 84, 24)}</span></td></tr>