-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanswer.php
More file actions
47 lines (35 loc) · 1.02 KB
/
answer.php
File metadata and controls
47 lines (35 loc) · 1.02 KB
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
41
42
43
44
<?php
session_set_cookie_params (3600*24*30);
session_start();
$argstring = "";
foreach ($_POST as $nameandseq=>$val)
{
if ($nameandseq == "complete")
{
$_SESSION['finished'] = $val;
last;
}
if ($nameandseq != "itemlist" && $nameandseq != "nowleft")
{
list ($name, $seq) = split (";", $nameandseq);
$result = array();
if (is_array($_POST[$nameandseq]))
{
foreach ($_POST[$nameandseq] as $i=>$elem)
{
// exec ("exec/manage.pl enter " . $_SESSION['idnum'] . " " . $name . " '"
// urlencode($elem) . "' " . $seq, &$result, &$return);
$argstring .= " " . $name . " '" . urlencode($elem) . "' " . $seq;
}
}
else
{
//exec ("exec/manage.pl enter " . $_SESSION['idnum'] . " " . $name . " '"
// . urlencode($val) . "' " . $seq, &$result, &$return);
$argstring .= " " . $name . " '" . urlencode($val) . "' " . $seq;
}
}
}
exec ("exec/manage.pl enter " . $_SESSION['idnum'] . $argstring);
header ("Location: index2.php");
?>