PHP 在提交生成页面的时候,出现乱码 请教... 20
<formaction="/guahao.php?submit=1"method="post"id="gh_form">在提交生成验证不对的时候,出来的是乱码,生成页面代...
<form action="/guahao.php?submit=1" method="post" id="gh_form"> 在提交 生成验证不对的时候,出来的是乱码,
生成页面代码如下: 请教哪里出错了!该如何修改?
<?php require('config.php');?><?php include('lib/functions.php');?><?php require('lib/mysql.class.php');?><?php
@extract($_GET,EXTR_PREFIX_ALL,"g");if(isset($_POST['submit']) || isset($g_submit)){ @check_post_request(); @extract($_POST,EXTR_PREFIX_ALL,"p");}session_cache_limiter('private,must-revalidate');if(!isset($_SESSION)){ session_start();}$config['sys']['path'] = str_replace('guahao.php','',$_SERVER['PHP_SELF']);
$db = new c_mysql;
if(isset($g_submit) || isset($p_submit)){ if(empty($p_yanzheng)) alert_back('很抱歉2,预约提交失败:验证码不正确,谢谢!'); if($p_yanzheng != $_SESSION["Checknum"]) alert_back('很抱歉,预约提交失败:验证码不正确,谢谢!');
-(省略) $date = array('name' => $p_name, 'age' => intval($p_age), 'gender' => $p_sex, 'rid' => $p_rid, 'tel' => $p_tel, 'date' => $p_comedate, 'note' => $p_note, 'addtime' => time());
$result = $db->insert_date('record',$date); if(!$result) alert_back('添加预约失败,请稍后重试!'); alert_back('添加预约成功,稍后我们将与您取得联系核实!');}exit();?>
拜请大神,谢过! 展开
生成页面代码如下: 请教哪里出错了!该如何修改?
<?php require('config.php');?><?php include('lib/functions.php');?><?php require('lib/mysql.class.php');?><?php
@extract($_GET,EXTR_PREFIX_ALL,"g");if(isset($_POST['submit']) || isset($g_submit)){ @check_post_request(); @extract($_POST,EXTR_PREFIX_ALL,"p");}session_cache_limiter('private,must-revalidate');if(!isset($_SESSION)){ session_start();}$config['sys']['path'] = str_replace('guahao.php','',$_SERVER['PHP_SELF']);
$db = new c_mysql;
if(isset($g_submit) || isset($p_submit)){ if(empty($p_yanzheng)) alert_back('很抱歉2,预约提交失败:验证码不正确,谢谢!'); if($p_yanzheng != $_SESSION["Checknum"]) alert_back('很抱歉,预约提交失败:验证码不正确,谢谢!');
-(省略) $date = array('name' => $p_name, 'age' => intval($p_age), 'gender' => $p_sex, 'rid' => $p_rid, 'tel' => $p_tel, 'date' => $p_comedate, 'note' => $p_note, 'addtime' => time());
$result = $db->insert_date('record',$date); if(!$result) alert_back('添加预约失败,请稍后重试!'); alert_back('添加预约成功,稍后我们将与您取得联系核实!');}exit();?>
拜请大神,谢过! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询