-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeedback.php
executable file
·35 lines (30 loc) · 1.52 KB
/
feedback.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
<b><?php require_once('util/main.php');
require_once ('util/db_function.php');
$gender= $_SESSION['gender'];
if (check_condition_num($gender)[0]==17)//check if we meet one condition,
// a.k.a to see if there's 14 negative control for one gender
$page="Job_Offer_+.php";
else { //if not randomly assign pos/neg control
$control=rand(0,1);
if ($control==0)
$page="Job_Offer_-.php";
else
$page="Job_Offer_+.php"; }
$id=add_gender($gender, $control);
$_SESSION['id']=$id;
//writeToFile($gender);
//writeToFile($control);
?>
<center>
<h1>Results </h1>
<p>
                                   
Average Score       Test component A, B, C <br>
You                                       92                   96, 88, 92<br>
group member 1(female)       86                   88, 96, 74<br>
group member 2(male )         86                   85, 77, 96<br>
group member 3(female)       81                   82, 78, 83
</p>
<!-- direct to Job offer page -->
<a href="<?php echo $app_path; echo $page?>" >Click here to proceed</a>
</center></b>