本文整理汇总了PHP中Submission::getID方法的典型用法代码示例。如果您正苦于以下问题:PHP Submission::getID方法的具体用法?PHP Submission::getID怎么用?PHP Submission::getID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Submission
的用法示例。
在下文中一共展示了Submission::getID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Submission
<?php
include $_SERVER['DOCUMENT_ROOT'] . "/classes/access_user/ext_submission.php";
error_reporting(E_ALL);
// I use this only for testing
$add_submission = new Submission(false, false);
// need to be false otherwise the redirect to this page will not work
//$add_submission->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING']); // protect this page too.
if (isset($_POST['Submit'])) {
$add_submission->user = $_POST['login'];
$add_submission->user_pw = md5($_POST['password']);
if ($add_submission->check_user()) {
$_SESSION['user'] = $add_submission->user;
$_SESSION['pw'] = $add_submission->user_pw;
$user_id = $add_submission->getID();
// $add_submission->login_saver();
//echo "HOORAY";
// if ($add_submission->count_visit) {
// $add_submission->reg_visit($user, $this->user_pw);
//}
// $add_submission->set_user(false);
// $add_submission->the_msg = $add_submission->messages(10);
} else {
$add_submission->the_msg = $add_submission->messages(10);
}
// $add_submission->login_user($_POST['login'], $_POST['password']);
$add_submission->add_submission($user_id, $_POST['db'], $_POST['var1'], $_POST['var2'], $_POST['ranges'], $_POST['history']);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>