-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustLFApp_act.php
More file actions
51 lines (48 loc) · 1.13 KB
/
custLFApp_act.php
File metadata and controls
51 lines (48 loc) · 1.13 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
45
46
47
48
49
50
51
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="custLFApp_act.css">
</head>
<body>
<?php
include ('config.php');
/*
$custID = $_REQUEST['custID'];
$custEmail = $_REQUEST['custEmail'];
$aid = $_REQUEST ['aid'];
$uname = $_REQUEST ['uname'];
*/
$statusAct = $_REQUEST ['statusAct'];
$_SESSION['msg'] = "";
$msgFlag = "Error";
$status = "Pending";
$queryUpd = "update application set status = '$statusAct' where email = '".$_SESSION['email']."' " ;
$queryUpdd = $conn->query($queryUpd);
if ($queryUpdd)
{ $_SESSION['msg'] = "Form submitted successfully";
$msgFlag = "Success";
}
else
{
$_SESSION['msg'] = "Problem in Form submission";
$msgFlag = "Error";
}
$className = "error";
if($msgFlag== "Success"){
$className = "success";
}
?>
<body>
<div class = "container signin">
<p class = "<?php echo $className ; ?> " >
<?php echo $_SESSION['msg'] ; ?>
</p>
</div>
<button class = "registerbtn" onclick = "window.location.href='custList.php'"> Back </button>
</body>
</html>