Advertisement
Guest User

Untitled

a guest
May 27th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <?php
  2. session_start();
  3. include("config.php");
  4.  
  5. if(!$con)
  6. {
  7. die('Could not connect: ' . mysqli_error());
  8. echo "connection failed.";
  9. }
  10. else
  11. {
  12. if(!isset($_SESSION['user']))
  13. {
  14. header("Location:login.php");
  15. }
  16. }
  17.  
  18. ?>
  19. <!DOCTYPE html>
  20. <html>
  21. <head>
  22. <title>Nith CareerBox</title>
  23. <link rel="stylesheet" href="checkfile.css" type="text/css">
  24. <link rel="stylesheet" href="css/bootstrap.min.css">
  25. <link rel="stylesheet" href="upload.css" type="text/css">
  26.  
  27. </head>
  28. <body>
  29. <!-- <nav class="navbar navbar-default">
  30. <div class="container-fluid">
  31. <div class="navbar-header">
  32. <a class="navbar-brand" href="#">
  33.  
  34. </a>
  35. </div>
  36. </div>
  37. </nav> -->
  38. <div class="navigation-bar">
  39. <ul class="nav nav-tabs">
  40. <li role="presentation" class="active"><a href="#"><?php echo $_SESSION['user'];?></a></li>
  41. <li role="presentation"><a href="#">Profile</a></li>
  42. <li role="presentation"><a href="logout.php">Logout</a></li>
  43. </ul>
  44. </div>
  45. <div class="flex-container">
  46. <h1 id="upload">Upload your file here</h1>
  47. <form action="upload.php" method="post" enctype="multipart/form-data">
  48. <div class="flex-item1">
  49. <input type="file" name="myfile">
  50. </div>
  51. <div class="flex-item1">
  52. <input type="submit" name="upload" value="upload">
  53. </div>
  54. </form>
  55. <form action="view.php" method="post" >
  56. <div class="flex-item3">
  57. <button type="submit" class="btn btn-warning" name="view_cv">View CV</button>
  58. </div>
  59. </form>
  60. </div>
  61. </body>
  62. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement