forked from Hereisaa/ilearning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_submit.php
40 lines (30 loc) · 917 Bytes
/
test_submit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
session_start();
$_SESSION["test_email"] = $_POST["test_email"];
/*
if(isset($_SESSION["test_email"])){
$username = $_SESSION["test_email"];
}
else{
$username = NULL;
}
if($username==NULL){
$smarty->assign("login", "login");
$smarty->assign("login_text","登入");
$smarty->assign("username","");
$smarty->assign("login_status",0);
}else{
$smarty->assign("login", "logout");
$smarty->assign("login_text","登出");
$smarty->assign("username",$username);
$smarty->assign("login_status",1);
}
// 參與測驗人員 email
if( isset($_POST["test_email"]) ){
$_SESSION["test_email"] = $_POST["test_email"];
}
*/
require_once "libs/Smarty.class.php";
$smarty = new Smarty();
$smarty->display("normtest.html");
?>