} if ($_POST['password'] != $_POST['password_c']) { $error .= '两次输入密码不匹配\\n'; } if (!empty($_POST['postcode'])) { if (!check::CheckPost($_POST['postcode'])) { check::AlertExit('邮编不合法!', -1); } } if (!empty($_POST['tel'])) { if (!check::CheckTelephone($_POST['tel'])) { check::AlertExit('联系电话格式不对!', -1); } } if (!empty($_POST['fax'])) { if (!check::CheckTelephone($_POST['fax'])) { check::AlertExit('传真号码格式不对!', -1); } } if (!empty($error)) { check::AlertExit($error, -1); } $_POST['user_ip'] = check::getIP(); $_POST['submit_date'] = date('Y-m-d H:i:s'); $intID = $objWebInit->saveInfo($_POST, 0); if ($intID) { $_SESSION['user_id'] = $intID; $_SESSION['password'] = $_POST['password']; $_SESSION['user_name'] = $_POST['user_name']; $_SESSION['real_name'] = $_POST['real_name']; $_SESSION['user_group'] = 0;