1
+ <?php
2
+ session_start ();
3
+
4
+ ?>
5
+ <!DOCTYPE html>
6
+ <html>
7
+
8
+ <head>
9
+ <meta charset="utf-8">
10
+ <title>Signin Upload</title>
11
+ <link rel="icon" href="favicon.png">
12
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
13
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
14
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
15
+ integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
16
+ </head>
17
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
18
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
19
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
20
+ <link href="signin.css" rel="stylesheet">
21
+ </head>
22
+
23
+ <body class="text-center">
24
+ <div class="container-fluid">
25
+
26
+ <div class="row justify-content-center">
27
+ <div class="mx-1 mt-1 card rounded">
28
+ <div class="card-body">
29
+ <form action="upload.php" method="post" enctype="multipart/form-data" class="form-signin">
30
+ <h1 class="h3 mb-3 font-weight-normal">Please verify</h1>
31
+ <label for="inputPassword" class="sr-only">Password</label>
32
+ <input type="password" name="pwd" id="pwd" class="form-control" placeholder="Password" required>
33
+ <label class="btn btn-primary btn-block">
34
+ Browse <input type="file" name="fileToUpload" id="filetoUpload"
35
+ onchange="$('#upload-file-info').html(this.files[0].name)" hidden>
36
+ </label>
37
+ <p class='label label-info' id="upload-file-info"></p>
38
+ <p class='label label-info' id="retval"></p>
39
+ <!-- <input class="btn btn-primary btn-block" type="file" name="fileToUpload" id="fileToUpload"> -->
40
+ <button name="submit" class="btn btn-lg btn-primary btn-block" type="submit">Verify and upload
41
+ </button>
42
+ <p class="mt-5 mb-3 text-muted">© 2019-2020</p>
43
+ </form>
44
+ </div>
45
+ </div>
46
+
47
+ </div>
48
+ </div>
49
+ <?php
50
+ if (isset ($ _SESSION ['message ' ]))
51
+ {
52
+ echo $ _SESSION ['message ' ];
53
+ unset($ _SESSION ['message ' ]);
54
+ }
55
+ ?>
56
+ </body>
57
+
58
+ </html>
0 commit comments