本文整理汇总了PHP中input_post函数的典型用法代码示例。如果您正苦于以下问题:PHP input_post函数的具体用法?PHP input_post怎么用?PHP input_post使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了input_post函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Index
public function Index()
{
$data = input_post('data');
$this->model->DataR->ramdom = $this->model->Ramdom;
$this->model->Processes->ramdom = $this->model->Ramdom;
$this->model->DataR->dataJson = $data;
$this->model->DataR->Run();
$this->model->Processes->Security = $this->model->DataR->Security;
$this->model->Processes->dataP = $this->model->DataR->dataRead;
$this->model->Processes->Run();
$this->model->DataS->DataSD = $this->model->Processes->dataP;
$this->model->DataS->DataR = $this->model->DataR->dataRead;
$this->model->DataS->Security = $this->model->DataR->Security;
$this->model->DataS->dataMSG = $this->model->Processes->dataMSG;
$this->model->DataS->MSGT = $this->model->Processes->msgTF;
$this->model->DataS->Send();
}
示例2: editAction
public function editAction()
{
$error = array();
$cid = input_get('cid');
echo $cid;
$data = $this->model->action_db->cate_edit($cid);
var_dump($data);
$data1 = array('Cate_title' => input_post('Cate_title'), 'Cate_slug' => input_post('Cate_slug'), 'Cate_description' => input_post('Cate_description'), 'Cate_keywords' => input_post('Cate_keywords'), 'Cate_Robots' => input_post('Cate_Robot'));
if (validate_empty($data1['Cate_title'])) {
$error['Cate_title'] = 'vui long khong de trong tuong nay';
} else {
if ($this->model->action_db->cate_exit_update_title($data1['Cate_title'], $cid)) {
$error['Cate_title'] = 'title nay da ton tai';
}
}
if (validate_empty($data1['Cate_slug'])) {
$error['Cate_slug'] = 'khong de trong truong nay';
} else {
if ($this->model->action_db->cate_exit_update_slug($data1['Cate_slug'], $cid)) {
$error['Cate_slug'] = 'slug da ton tai';
}
}
if (empty($error)) {
$flag = $this->model->action_db->update_category($cid, $data1);
if ($flag) {
echo '<script language="javascript">';
echo 'alert("ban da update thanh cong");';
echo 'window.location="admin.php?c=category"';
echo '</script>';
}
}
$this->view->load('sidebar');
$datasend = array($data, $error);
//var_dump($datasend);
$this->view->load('edit', $datasend);
}
示例3: input
<?php
$action = input('action');
if( $action === 'showtable' ){
$groups = array(
1 => 'ENV ROUND',
2 => 'IC ROUND',
3 => 'RM ROUND',
4 => '12 ¡Ô¨¡ÃÃÁ·º·Ç¹',
5 => '˹èÇÂÃÒ§ҹàͧ',
6 => 'Í×è¹æ',
7 => 'àÇõÃǨ¡ÒþÂÒºÒÅ',
8 => '¹Ò·ËÒÃàÇûÃШÓÇѹ'
);
$date = input_post('date_format');
$conf = array(
'host' => 'localhost',
'port' => 3306,
'dbname' => 'dbconform',
'user' => 'root',
'pass' => '1234',
);
$db = Mysql::load($conf);
$sql = "SELECT (SUBSTRING(`nonconf_date`, 1, 4) - 543) AS `year`,
DATE_FORMAT( `nonconf_date`, '%m' ) AS `month`,
CONCAT((SUBSTRING(`nonconf_date`, 1, 4) - 543), '-', DATE_FORMAT( `nonconf_date`, '%m' )) AS `ad_date`,
COUNT(`nonconf_id`) AS `rows`,
`come_from_id`
示例4: redirect
$msg = 'Ї—єЈ÷°¢йЌЅў≈дЅи ”а√з®°√Ў≥“а°зЇв§йіє’й '.$save['id'].' аЊ„иЌб®йІгЋйЉўйіўб≈√–ЇЇЈ”°“√б°йд¢µиЌдї';
}
redirect('news_list.php', $msg);
exit;
} else if( $action === 'delete' ){
$id = input_get('id');
$sql = "UPDATE `smdb`.`news` SET `status` = '0' WHERE `news`.`id` =:id LIMIT 1 ;";
// DB::exec($sql, array(':id' => $id));
$db->update($sql, array(':id' => $id));
redirect('news_list.php', 'і”ає‘є°“√а√’¬Ї√йЌ¬б≈й«');
exit;
} else if( $action === 'remove_path' ){
$path = input_post('path');
if(is_file($path)){
unlink($path);
}
echo '{"successful":true}';
exit;
}
include 'templates/classic/header.php';
?>
<div class="site-header-fixture no-print">
<div class="site-header">
<div class="col width-fit mobile-width-fit">
<div class="cell">
<a href="#" class="logo"></a>
</div>
示例5: get_session
<div style="color: red;"><?php
echo get_session('x-msg');
?>
</div><?php
set_session('x-msg', false);
}
} elseif ($step === 3) {
$userId = get_session('sRowid');
$pass = input_post('confirm_pass');
$bedCode = input_post('bedcode');
$sql = "SELECT `row_id` FROM `inputm` WHERE `row_id` = :user_id AND `pword` = :password ;";
$item = DB::select($sql, array(':user_id' => $userId, ':password' => $pass), true);
if ($item !== NULL) {
$thai_date = date('Y') + 543 . date('-m-d H:i:s');
$editor = get_session('sOfficer');
$hn = input_post('hn');
/**
* @todo
* [x] ��Ǩ�ͺ��� lock �ҡ��ͧ����Թ��
* [x] backup `bed`
* [x] INSERT `ward_log`
* [x] UPDATE `bed`
* [x] UPDATE `ipcard`
*/
// �硡����ͤ�ҡ��ǹ���Թ
$sql = "SELECT `lock_dc` FROM `ipcard` WHERE `bedcode` = :bed_code AND `hn` = :hn";
$item = DB::select($sql, array(':bed_code' => $bedCode, ':hn' => $hn), true);
if (empty($item['lock_dc'])) {
redirect('cancel_admit.php?step=2&bedcode=' . $bedCode, '��سҵԴ�����ǹ���Թ��������ͷӡ�ûŴ��ͤ�����Թ���¡��ԡ Admit');
}
// Backup `bed`
示例6: input_post
<?php
require '../loader.php';
/**
* create user script
*/
$userId = input_post('user_id');
$name = input_post('name');
$avatar = input_post('avatar');
if ($userId && $name && $avatar) {
// initiate users class
$users = new Users();
// check for user existanse
$isExists = $users->isUserExists($userId);
if ($isExists) {
echo output_json(FALSE, ERR_DUPLICATE_DATA);
} else {
// create a new user object
$user = $users->createUser($userId, $name, $avatar);
if ($user) {
echo output_json(TRUE, ERR_EMPTY, $user);
} else {
echo output_json(FALSE, ERR_SERVER_ERROR);
}
}
} else {
echo output_json(FALSE, ERR_MISSING_DATA);
}
/* End of file create_user.php */
/* Location ./scripts/create_user.php */
示例7: get_year_checkup
<?php
include 'bootstrap.php';
$title = '╗с╧г╧╪ыИ╩Хгб╥я╧╣║ццаАб║╣райт╥╦тЛ';
include 'templates/classic/header.php';
// Default year checkup
$checkup = get_year_checkup(true);
$show = input_post('show_result');
$yearSelect = input_post('year_select', $checkup);
?>
<div class="cell no-print">
<div class="col">
<ul class="nav">
<li><a href="../nindex.htm">к╧Иркея║Б╩цА║ца SHS</a></li>
</ul>
</div>
</div>
<div class="cell">
<div class="col">
<h3>╗с╧г╧╪ыИ╩Хгб╥я╧╣║ццаАб║╣райт╥╦тЛ ╩у <?=$yearSelect;?></h3>
</div>
</div>
<div class="cell">
<div class="col">
<form action="report_dental_ptright.php" method="post" class="no-print">
<div class="cell">
<div class="col">
<label for="yearSelect">
Юевм║╩у╖╨╩цпарЁ <input type="text" id="yearSelect" name="year_select" value="<?=$yearSelect;?>">
</label>
示例8: get_date_bc
<?php
include 'bootstrap.php';
$default_bc = get_date_bc('Y-m');
$action = input('action');
$date_select = input_post('date_select', $default_bc);
include 'templates/classic/header.php';
?>
<div class="col no-print">
<div class="cell">
<a href="../nindex.htm"><< ˹éÒËÅÑ¡â»Ãá¡ÃÁâç¾ÂÒºÒÅ</a>
</div>
</div>
<div class="col no-print">
<div class="cell">
<div class="col">
<div class="cell">
<h3>¤é¹ËÒÃÒÂÃѺáºè§µÒÁÃÒ¡ÒÃáÅЪèǧàÇÅҢͧ½Ñ§à¢çÁ</h3>
</div>
</div>
<form action="report_income_nid.php" method="post">
<div class="col">
<div class="cell">
<label for="date_select">àÅ×Í¡»Õ-à´×͹</label>
<input type="text" id="date_select" name="date_select" value="<?=$date_select;?>">
<div style="font-size: 16px; color: red;">* µÑÇÍÂèÒ§¡Òäé¹ËÒ 2558-11</div>
</div>
</div>
示例9: input_post
<label for="user_hn">HN: </label>
<input type="text" id="user_hn" name="user_hn" value="<?=$hn;?>">
<div style="font-size: 16px; color: red;">* ������ HN ���ʹ���ª��ͷ�����</div>
</div>
</div>
<div class="col">
<div class="cell">
<button type="submit">�ʴ���</button>
<input type="hidden" name="view" value="user">
<input type="hidden" name="show" value="list">
</div>
</div>
</form>
<?php
$show = input_post('show');
if( $show === 'list' ){
$db = Mysql::load();
$data = array();
$where = '';
if( !empty($hn) ){
$where = ' WHERE a.`hn` = :user_hn ';
$data = array(':user_hn' => $hn);
}
$sql = "SELECT a.*, b.`genname`,c.`yot`,c.`name`,c.`surname`
FROM `phar_allergic` AS a
LEFT JOIN `druglst` AS b ON b.`drugcode` LIKE CONCAT(a.`drug_code`, '%')
LEFT JOIN `opcard` AS c ON c.`hn` = a.`hn`
$where
示例10: input_post
<?php
require '../loader.php';
/**
* send message
*/
$thread_id = input_post('thread_id');
$message_body = input_post('message');
$sender_id = input_post('sender_id');
if ($thread_id && $message_body && $sender_id) {
$users = new Users();
$threads = new Threads();
$messages = new Messages();
$push = new PushService();
$message_id = $messages->createMessage($thread_id, $sender_id, $message_body);
$threads->addMessageToThread($thread_id, $message_id);
$message = $messages->getMessage($message_id);
$message['user'] = $users->getUser($message['sender_id']);
unset($message['sender_id']);
$push->pushMessage($message_id);
echo output_json(TRUE, ERR_EMPTY, $message);
} else {
echo output_json(FALSE, ERR_MISSING_DATA);
}
/* End of file send_message.php */
/* Location ./scripts/send_message.php */
示例11: if
</div>
<div>
<div>
<button type="submit">мя╬Ю╢╥╒Имаые</button>
<input type="hidden" name="action" value="update_form">
<input type="hidden" name="token" value="<?=generate_token('uc30baht');?>">
</div>
</div>
</form>
</div>
</div>
<?php
include '../templates/classic/footer.php';
}else if( $action === 'update_form' ){
$token = input_post('token');
$token_test = check_token($token, 'uc30baht');
if( $token_test === false ){
echo 'Invalid token';
exit;
}
$file = $_FILES['uc30'];
if( preg_match('/.+\.txt$/', $file['name']) === 0 ){
echo 'м╧ь╜р╣Ю╘╬рпД©еЛ .txt ╗цЙрррр нтЙгФ';
exit;
}
// мя╬Бке╢Д©еЛ
$upload = move_uploaded_file($file['tmp_name'], $file['name']);
示例12: VALUES
$sql = "INSERT INTO web_webboard_category VALUES (2, 'สอบถามปัญหาการใช้งาน maxsite', 2);";
// $result = mysql_query($sql);
$dbh->exec($sql);
$sql = "CREATE TABLE web_webboard_comment (\r\n id int(11) NOT NULL auto_increment,\r\n topic_id int(7) NOT NULL default '0',\r\n detail text NOT NULL,\r\n picture varchar(50) NOT NULL default '',\r\n post_name varchar(50) NOT NULL default '',\r\n is_member int(7) NOT NULL default '0',\r\n ip_address varchar(50) NOT NULL default '',\r\n post_date varchar(50) NOT NULL default '',\r\n PRIMARY KEY (id)\r\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
// $result = mysql_query($sql);
$dbh->exec($sql);
// $FileBNK = "../includes/config.in.php.bnk";
// $FileBNKOpen = @fopen($FileBNK, "r");
// $FileBNKContent = @fread($FileBNKOpen, @filesize($FileBNK));
// @fclose($FileBNKOpen);
$FileBNKContent = file_get_contents('../includes/config.in.example.php');
$web_url = input_post('web_url');
$web_email = input_post('web_email');
$use_capcha = input_post('use_capcha');
$capcha_type = input_post('capcha_type');
$capcha_num = input_post('capcha_num');
$FileBNKContent = str_replace("%DB_HOST%", $host, $FileBNKContent);
$FileBNKContent = str_replace("%DB_NAME%", $db_name, $FileBNKContent);
$FileBNKContent = str_replace("%DB_USERNAME%", $db_user, $FileBNKContent);
$FileBNKContent = str_replace("%DB_PASSWORD%", $db_pwd, $FileBNKContent);
$FileBNKContent = str_replace("%WEB_URL%", $web_url, $FileBNKContent);
$FileBNKContent = str_replace("%WEB_EMAIL%", $web_email, $FileBNKContent);
$FileBNKContent = str_replace("\"%USE_CAPCHA%\"", $use_capcha, $FileBNKContent);
$FileBNKContent = str_replace("%CAPCHA_TYPE%", $capcha_type, $FileBNKContent);
$FileBNKContent = str_replace("%CAPCHA_NUM%", $capcha_num, $FileBNKContent);
// $config_open = @fopen("../includes/config.in.php", "w");
// @fwrite($config_open, "".$FileBNKContent."");
// @fclose($config_open);
file_put_contents('../includes/config.in.php', $FileBNKContent);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
示例13: function
$(function(){
$(document).on('submit', '#adminForm', function(){
var month = $('#month').val();
if( month === '' ){
alert('б├╪│╥р┼╫═бр┤╫═╣');
return false;
}
});
});
</script>
<?php
include 'templates/classic/footer.php';
$action = input_post('action');
if ($action === 'show') {
$month = input_post('month');
$year = input_post('year');
$db = Mysql::load();
$yrmo = "{$year}-{$month}";
?>
<div>
<h3>╝┘щ╗ш╟┬╖╒ши╙╦╣ш╥┬у╣в═зр┤╫═╣ <?php
echo $def_fullm_th[$month];
?>
╗╒<?php
echo $year;
?>
╩╘╖╕╘╗├╨б╤╣╩╤зд┴</h3>
</div>
<table>
<tr>
<th>#</th>
示例14: elseif
<div>
<button type="submit">╓И╧крЦ╨╧я╢╘у╢бр</button>
<input type="hidden" name="action" value="show">
</div>
</form>
<?php
} elseif ( $action === 'show' ) {
$month = array(
'01' => 'а║цр╓а', '02' => '║ьаюр╬я╧╦Л', '03' => 'ау╧р╓а', '04' => 'Юаирб╧', '05' => '╬диюр╓а', '06' => 'ат╤ь╧рб╧',
'07' => '║ц║╞р╓а', '08' => 'йт╖кр╓а', '09' => '║я╧брб╧', '10' => '╣ьер╓а', '11' => '╬дх╗т║рб╧', '12' => '╦я╧гр╓а'
);
$date = input_post('date');
$hn = input_post('hn');
$drugcode = strtoupper(input_post('drugcode'));
$sql = "SELECT a.`hn`,a.`start_date`, b.`date`, b.`ptname`, b.`doctor`, c.`drugcode`, c.`tradname`
FROM `pharinj_history` AS a
LEFT JOIN `dphardep` AS b ON b.`row_id` = a.`dphardep_id`
LEFT JOIN `ddrugrx` AS c ON c.`idno` = a.`dphardep_id`
WHERE a.`start_date` LIKE '$date%'
AND a.`hn` = '$hn'
AND c.`drugcode` = '$drugcode'";
$items = DB::select($sql);
if( empty($items) ){
echo "ДаХ╬╨║рцЮ║Г╨╒Имаые╘у╢брбИм╧кея╖";
exit;
}
示例15: if
if($_POST['m_start']==""){
$day="╩у";
$dateshow = $_POST['y_start'];
}else if($_POST['d_start']==""){
$day="Ю╢вм╧";
$dateshow = $printmonth." ".$_POST['y_start'];
}else{
$day="гя╧╥уХ";
$dateshow = $_POST['d_start'].' '.$printmonth." ".$_POST['y_start'];
}
// ╤ИрЮевм║║рцАй╢╖╪е╣ра╩у╖╨╩цпарЁ
if( $checkup !== false ){
$thai_year = ad_to_bc(input_post('y_start'));
$where = " ( `thidate` >= '".(($thai_year - 1).'-10-01')."' AND `thidate` <= '".($thai_year.'-09-30')."' ) ";
$dateshow = "╖╨╩цпарЁ".$thai_year;
}else{
$where = "`thidate` LIKE '$date1%' ";
}
$sql1 = "CREATE TEMPORARY TABLE `opday1`
SELECT `row_id`,`thidate`,`hn`,`an`,`ptname`,`ptright`,`diag`, TRIM(`icd10`) AS `icd10`
FROM `opday`
WHERE $where
AND ( `doctor` LIKE '%╬тхре%' OR `doctor` LIKE '%Юем╩ця╙╜Л%' )";
$query1 = mysql_query($sql1) or die( mysql_error() );