本文整理汇总了PHP中get_post_value函数的典型用法代码示例。如果您正苦于以下问题:PHP get_post_value函数的具体用法?PHP get_post_value怎么用?PHP get_post_value使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_post_value函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: checkPayPwd
/**
*
* 支付密码检测
*/
function checkPayPwd()
{
$payPwd = get_post_value('payPwd');
//echo 'payPwd=>'.$payPwd;
$user_id = 1;
//测试user_id
$pay = new Pays();
$checkPayPwd = $pay->checkPayPwd($payPwd, $user_id);
if ($checkPayPwd) {
//检验支付密码正确
session_start();
if (isset($_SESSION["countPayErrorTimes"])) {
$_SESSION["countPayErrorTimes"] = 0;
$errorTimes = $_SESSION["countPayErrorTimes"];
}
$this->assign('message', $errorTimes);
$this->setReturnType('message');
} else {
session_start();
if (isset($_SESSION["countPayErrorTimes"])) {
$_SESSION["countPayErrorTimes"] = $_SESSION["countPayErrorTimes"] + 1;
if ($_SESSION["countPayErrorTimes"] >= 5) {
//错误次数大于5次 修改支付状态
$this->lockPayStatus();
}
$errorTimes = $_SESSION["countPayErrorTimes"];
} else {
$_SESSION["countPayErrorTimes"] = 1;
$errorTimes = $_SESSION["countPayErrorTimes"];
}
$this->assign('message', $errorTimes);
$this->setReturnType('message');
}
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:38,代码来源:PayController.class.php
示例2: verify_code
function verify_code()
{
//session_start();
$code = get_post_value('code');
//echo $code;
$m = new Register();
$data = $m->verify_code($code);
if (!isset($data['username'])) {
$this->assign('username', $data);
return;
}
//print_r($data);
$username = $data['username'];
$user_id = $data['user_id'];
$vip = $data['vip'];
$language = $data['language'];
$_SESSION["username"] = $username;
$_SESSION['user_id'] = $user_id;
$_SESSION['vip'] = $vip;
$_SESSION['language'] = $language;
//print_r($_SESSION);
// $m = new Login();
// $m->setSession($user_id, $username, $vip, $language);
// echo $_SESSION[$username];
$this->assign('username', $username);
// $m->updateCart();
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:27,代码来源:RegisterController.class.php
示例3: findPwdStepFour
function findPwdStepFour()
{
$email = $_SESSION["emailForPwd"];
$newPwd = get_post_value('newPwd');
//echo $code;
$m = new Security();
$data = $m->resetPwd($email, $newPwd);
if ($data) {
$this->assign('data', $data);
} else {
$this->assign('message', "重置失败,联系客服");
}
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:13,代码来源:SecurityController.class.php
示例4: get_size
function get_size()
{
$id = get_post_value("id");
$field = array('id', 'size', 'sku');
$m = new Products();
$m->clear();
$m->setTable(' vcb_product_ksize ');
//设置表名
$m->setField($field);
$m->setWhere('product_kind_id', '=', $id);
$data = $m->select();
$this->assign('json', $data);
$this->setReturnType('json');
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:14,代码来源:ProinfoController1.class.php
示例5: login
/**
* 登陆检测函数
*/
function login()
{
$this->doNotRenderHeader = 1;
$user = get_post_value('user');
$pwd = get_post_value('pwd');
$remenber = get_post_value('remenber');
$verifCode = get_post_value('verifCode');
//echo "verifCode=".$verifCode;
//echo $this->verifCodeCheck($verifCode);
if ($verifCode != null && $this->verifCodeCheck($verifCode) == "false") {
$this->assign('message', 'false');
$this->setReturnType('message');
return;
}
//echo "user=".$user;
//echo "pwd=".$pwd;
//echo "remenber=".$remenber;
$m = new Login();
$data = $m->loginIn($user, $pwd);
//echo "data:".$data;
if ($data) {
//登陆验证成功
session_start();
if (isset($_SESSION["countErrorTimes"])) {
$_SESSION["countErrorTimes"] = 0;
}
if ($remenber == "checked") {
setcookie("username", $data, time() + 3600 * 240, '/');
setcookie("user", $user, time() + 3600 * 240, '/');
}
$this->assign('message', 0);
$this->setReturnType('message');
} else {
//登录验证失败,错误次数加1
session_start();
if (isset($_SESSION["countErrorTimes"])) {
$_SESSION["countErrorTimes"] = $_SESSION["countErrorTimes"] + 1;
$errorTimes = $_SESSION["countErrorTimes"];
} else {
$_SESSION["countErrorTimes"] = 1;
$errorTimes = $_SESSION["countErrorTimes"];
}
$this->assign('message', $errorTimes);
$this->setReturnType('message');
}
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:49,代码来源:LoginController.class.php
示例6: add_favorites
function add_favorites()
{
if (!Login::verifyLogin()) {
header("Location: ../login/index");
exit;
}
$shop_id = get_post_value('shop_id');
$shop_site = get_post_value('shop_site');
$shop_username = get_post_value('shop_username');
$shop_url = get_post_value('shop_url');
$product_id = get_post_value('product_id');
$product = get_post_value('product');
$product_url = get_post_value('product_url');
$image_url = get_post_value('image_url');
$m = new Favorites();
$data = $m->addFavorites($shop_site, $shop_id, $shop_username, $shop_url, $product_id, $product_url, $product, $image_url);
$this->assign('message', $data);
$this->setReturnType('message');
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:19,代码来源:SearchController.class.php
示例7: get_orders
/**
* 返回国家最大序号
* @access public
*/
function get_orders()
{
//查询最大序号
$category_1 = get_post_value('category_1');
$m = new Category();
$m->clear();
$m->setTable('vcb_product_category_2');
$m->setWhere('status', '!=', '60000');
$m->setWhere('category_1_id', '=', $category_1);
$data = $m->getFieldValue('MAX(orders) ');
// 设置新的序号
if (is_null($data)) {
$data = 1;
} else {
$data += 1;
}
$this->assign('message', $data);
$this->setReturnType('message');
//只返回单值
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:24,代码来源:Category2Controller.class.php
示例8: foreach
} else {
echo '<option value="' . $key . '">' . $value . '</option>';
}
}
?>
</select>
</td>
</tr>
<tr>
<td> 二级层类目:</td>
<td><select name="floor_2" id="floor_2" onchange="setFloor_2()">
<option value=""></option>
<?php
if (!empty($floor_2)) {
foreach ($floor_2 as $key) {
if ($key['floor_2_id'] == get_post_value('floor_2')) {
echo '<option value="' . $key['floor_2_id'] . '" selected="selected">' . $key['floor_2_cn'] . '</option>';
} else {
echo '<option value="' . $key['floor_2_id'] . '">' . $key['floor_2_cn'] . '</option>';
}
}
}
?>
</select>
</td>
</tr>
<tr>
<td> 三级层类目:</td>
<td><select name="floor_3" id="floor_3" >
</select>
</td>
开发者ID:koery,项目名称:Vcanbuy,代码行数:31,代码来源:add2.php
示例9: session_start
*/
require_once 'includes/login_constants.php';
require_once 'includes/utilities.php';
require_once 'includes/login_code.php';
require_once 'includes/page_constants.php';
require_once 'includes/poker_db_constants.php';
require_once 'includes/poker_db_code.php';
//require_secure();
session_start();
$login_username = get_post_value(LOGIN_USERNAME_KEY);
$login_password = get_post_value(LOGIN_PASSWORD_KEY);
$register_username = get_post_value(REGISTER_USERNAME_KEY);
$register_password = get_post_value(REGISTER_PASSWORD_KEY);
$register_confirm_password = get_post_value(CONFIRM_PASSWORD_KEY);
$login_pressed = get_post_value(LOGIN_BUTTON_VALUE);
$register_pressed = get_post_value(REGISTER_BUTTON_VALUE);
$error_message = login_or_register($login_pressed, $register_pressed, $login_username, $login_password, $register_username, $register_password, $register_confirm_password);
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login or Register</title>
<link rel="stylesheet" href="includes/login.css.php">
</head>
<body>
<div id="login_content">
<?php
开发者ID:nomad-mystic,项目名称:CIS195PHP,代码行数:31,代码来源:login.php
示例10: foreach
二级层类目:<select name="floor_2" id="floor_2" >
<option value=""></option>
<?php
if (!empty($floor_2)) {
foreach ($floor_2 as $key) {
if ($key['floor_2_id'] == get_post_value('floor_2')) {
echo '<option value="' . $key['floor_2_id'] . '" selected="selected">' . $key['floor_2_cn'] . '</option>';
} else {
echo '<option value="' . $key['floor_2_id'] . '">' . $key['floor_2_cn'] . '</option>';
}
}
}
?>
</select>
<input type="textbox" name="floor_3" id="floor_3" value="<?php
echo get_post_value('floor_3');
?>
" />
<input type="submit" name="button" id="button" value="提交" />
<a href="add">新增</a>
<table border="1" >
<tr>
<td >一级类目</td>
<td >二级类目(中文)</td>
<td >二级类目(泰文)</td>
<td >序号</td>
<td >三级类目(中文)</td>
<td >三级类目(泰文)</td>
<td >建立时间</td>
<td >开始时间</td>
<td >结束时间</td>
开发者ID:koery,项目名称:Vcanbuy,代码行数:31,代码来源:index.php
示例11: verify_region
/**
* 判断大区是否存在
* @access private
* @param string $region_id 大区ID
* @return true|false
*/
private function verify_region($region_id = NULL)
{
$country = get_post_value('country');
$region = get_post_value('region');
$m = new Address();
$m->clear();
$m->setTable('vcb_address_region');
$m->setWhere('country_id', '=', $country);
$m->setWhere('region', '=', $region);
$m->setWhere('status', '!=', '50000');
if ($region_id != null) {
$m->setWhere('region_id', '!=', $region_id);
}
$data = $m->getFieldValue('COUNT(*)');
// 直接返回单条记录
return $data > 0 ? false : true;
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:23,代码来源:RegionController.class.php
示例12: to_favorites
function to_favorites()
{
$id = get_post_value('id');
$m = new Favorites();
$data = $m->cartToFavorites($id);
$this->assign('message', '1');
$this->setReturnType('message');
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:8,代码来源:ConorderController.class.php
示例13: delete
function delete()
{
$id = get_post_value('id');
$m = new Orders();
$m->delete($id);
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:6,代码来源:OrdersController.class.php
示例14: foreach
<form method="POST" action="index" name="myform">
<div>
国家:<select name="country" id="country">
<option value=""></option>
<?php
foreach ($country as $c) {
if (get_post_value('country') == $c['country_id']) {
echo "<option value='" . $c['country_id'] . "' selected='selected'>" . $c['country'] . "</option>";
} else {
echo "<option value='" . $c['country_id'] . "'>" . $c['country'] . "</option>";
}
}
?>
</select>
大区:<input type="text" name="region" id="region" value='<?php
echo get_post_value('region');
?>
'>
<input name="submit" type="submit" value="提交" />
<a href="add">新增</a>
</div>
<table border="1" width ="600">
<tr>
<td >国家名称</td>
<td >序号</td>
<td >大区名称</td>
<td >状态</td>
<td >修改</td>
<td >删除</td>
</tr>
开发者ID:koery,项目名称:Vcanbuy,代码行数:31,代码来源:index.php
示例15: get_post_value
$posterfilename = "";
$moviename_class = "";
$moviecast_class = "";
$moviedescription_class = "";
$posterfilename_class = "";
//checks if form has been submited and if empty sets to error
if (isset($_POST["submit"])) {
$moviename = get_post_value("moviename");
if (!$moviename) {
$moviename_class = "error";
}
$moviecast = get_post_value("moviecast");
if (!$moviecast) {
$moviecast_class = "error";
}
$moviedescription = get_post_value("moviedescription");
if (!$moviedescription) {
$moviedescription_class = "error";
}
//function returns posterfile name and returns any errors
list($posterfilename, $posterfilename_error, $posterfilename_msg) = get_file_upload("posterfilename");
if (!$posterfilename) {
$posterfilename_class = "error";
}
//function gets row id of movie in database
if ($moviename && $moviecast && $moviedescription && $posterfilename) {
$rowid = add_movie($moviename, $moviedescription, $moviecast, $posterfilename);
} else {
$error_msg = "Please enter required fields.";
}
}
开发者ID:kapljr,项目名称:Jay-Kaplan-Farmingdale-BCS-Projects,代码行数:31,代码来源:addmovie.php
示例16: get_post_value
if ($key['floor_2_id'] == get_post_value('floor_2')) {
echo '<option value="' . $key['floor_2_id'] . '" selected="selected">' . $key['floor_2_cn'] . '</option>';
} else {
echo '<option value="' . $key['floor_2_id'] . '">' . $key['floor_2_cn'] . '</option>';
}
}
}
?>
</select>
三级层类目:<select name="floor_3" id="floor_3" >
</select>
</div>
<div>
产品名称:<input type="text" name="key" id="key" value="<?php
echo get_post_value('key');
?>
"/>
<input type="submit" name="submit" value="确定" />
<a href="add1">新增</a>
</div>
<table border="1" >
<tr>
<td >序号</td>
<td >名称</td>
<td >状态</td>
<td >修改</td>
<td >删除</td>
<td >商品种类</td>
</tr>
<?php
开发者ID:koery,项目名称:Vcanbuy,代码行数:31,代码来源:index.php
示例17: get_floor_3
function get_floor_3()
{
$floor_2 = get_post_value('floor_2');
$m = new Floor();
$data = $m->getFloor_3($floor_2);
$this->assign('json', $data);
$this->setReturnType('json');
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:8,代码来源:ProductsController.class.php
示例18: editaddress
function editaddress()
{
$user_id = Account::getUserId();
$this->doNotRenderHeader = 1;
$m = new Account();
$country = get_post_value('country');
$region = get_post_value('region');
$province = get_post_value('province');
$city = get_post_value('city');
$district = get_post_value('district');
$address = get_post_value('address');
$postcode = get_post_value('postcode');
$mobile = get_post_value('mobile');
$tel = get_post_value('tel');
$data = $m->save($country, $region, $province, $city, $district, $address, $postcode, $mobile, $tel, $user_id);
//var_dump($data);
if (!empty($data)) {
header("location:addr_success");
}
$this->assign('data', $data);
}
开发者ID:koery,项目名称:Vcanbuy,代码行数:21,代码来源:AccountController.class.php
示例19: get_post_value
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$acctName = get_post_value('Account');
$firstName = get_post_value('FirstName');
$lastName = get_post_value('LastName');
$address = get_post_value('Address');
$city = get_post_value('City');
$state = get_post_value('State');
$country = get_post_value('Country');
$postalCode = get_post_value('postalCode');
$paymentTerm = 'Due Upon Receipt';
$invoiceOwner = get_post_value('invoiceOwner');
$term = get_post_value('Term');
$initTerm = get_post_value('Init');
$renewTerm = get_post_value('RenewTerm');
$autoRenew = get_post_value('AutoRenew');
$termStart = get_post_value('TermStart');
$contractEffdt = $termStart;
$activationDt = $termStart;
$acceptanceDt = $termStart;
// set parent ID to the node in the hierarchy clicked
$parentId = $_SESSION['accountId'];
// echo 'payment in post: ' . $paymentTerm;
if ($invoiceOwner == 'pbill') {
$InvoiceOwnerId = $_SESSION['accountId'];
} else {
$InvoiceOwnerId = 'null';
}
//echo 'parent id: ' . $_SESSION['parentId'];
$subInfo = array('accountName' => $acctName, 'term' => $term, 'firstName' => $firstName, 'lastName' => $lastName, 'accountName' => $acctName, 'parentId' => $parentId, 'address' => $address, 'city' => $city, 'state' => $state, 'country' => $country, 'postalCode' => $postalCode, 'paymentTerm' => $paymentTerm, 'invoiceOwner' => $InvoiceOwnerId, 'initTerm' => $initTerm, 'renewTerm' => $renewTerm, 'autoRenew' => $autoRenew, 'termStart' => $termStart, 'contractEffdt' => $contractEffdt, 'activationDt' => $activationDt, 'acceptanceDt' => $acceptanceDt);
//TODO add code to check up against app table
$subRes = SubscriptionManager::partnerSubscribe($subInfo, $_SESSION['cart']);
开发者ID:j0nbr0wn,项目名称:zilla_heroku,代码行数:31,代码来源:subscriber.php
示例20: foreach
foreach ($province as $p) {
if (get_post_value('province') == $p['province_id']) {
echo "<option value='" . $p['province_id'] . "' selected='selected'>" . $p['province'] . "</option>";
} else {
echo "<option value='" . $p['province_id'] . "'>" . $p['province'] . "</option>";
}
}
?>
</select>
<span id="msg_province" style="display: none">请选择省</span>
</td>
</tr>
<tr>
<td>序号</td>
<td><input type="text" name="orders" id="orders" class="input_int" value='<?php
echo get_post_value('orders');
?>
'> </td>
</tr>
<tr>
<td>市</td>
<td><input type="text" name="city" id="city" maxlength="50">
<span id="msg_city" style="display: none">请输入市名称</span></td>
</tr>
<tr>
<td>启用</td>
<td><input name="status" type="checkbox" id="status" value="10000" checked="checked"/></td>
</tr>
</table>
<input name="submit" type="submit" value="提交" />
开发者ID:koery,项目名称:Vcanbuy,代码行数:31,代码来源:add.php
注:本文中的get_post_value函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论