Advertisement
m4dh4tt3r

dispatcher

Jul 11th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.90 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <head>
  5.   <meta charset="utf-8">
  6.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.   <meta name="description" content="">
  8.   <meta name="keywords" content="">
  9.   <meta name="generator" content="Responsive Site Designer 1.5.1419">
  10.  
  11.   <title>Share to teach</title>
  12.   <link rel="stylesheet" href="css/coffeegrinder.min.css">
  13.   <link rel="stylesheet" href="css/wireframe-theme.min.css">
  14.   <script>document.createElement( "picture" );</script>
  15.   <script src="js/picturefill.min.js" class="picturefill" async="async"></script>
  16.   <link rel="stylesheet" href="css/main.css">
  17. </head>
  18.  
  19. <?php
  20.  $name = $_REQUEST["myname"];
  21.  $surname = $_REQUEST["mysurname"];
  22.  $email = $_REQUEST["myemail"];
  23.  $username = $_REQUEST["myusername"];
  24.  $password = $_REQUEST["pass1"];
  25.  $country = $_REQUEST["mycountry"];
  26.  $city = $_REQUEST["mycity"];
  27.  $type = $_REQUEST["mytype"];
  28.  $school = $_REQUEST["myschool"];
  29.  
  30.  
  31.  
  32. require_once("config.php");
  33.  
  34. $link = mysqli_connect('$conn');
  35.  
  36. if (!$conn ) {
  37.    die('Connect Error: ' . mysqli_connect_error());
  38. }
  39.  
  40. mysqli_query($conn , "INSERT INTO `teacher`(`TName`, `Tsurname`, `TUserName`, `Tpassword`, `TID`, `School`, `City`, `Country`, `Approved`)
  41. VALUES ($name,$surname,$username,$password,NULL,$school,$city,$country,'0')");
  42.    
  43. mysqli_query(close);
  44.  
  45.  
  46. ?>
  47.  
  48. <html>
  49.  
  50. <form align="left" name="form1" method="onload" action="LOGIN_page.html">
  51. </html>
  52.  
  53. <script>
  54.  alert("The form was submitted");
  55.  </script>
  56.  
  57. <div>
  58. <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
  59. <tr>
  60. <td colspan="3"><strong>Confirm email and go to login page to log in</strong></td>
  61. </tr>
  62. <tr>
  63. <td>
  64. <form align="right" name="form1" method="POST" >
  65. <form action="LOGIN_page.html">
  66.  
  67.   <input name="submit2" type="submit" id="submit2" value="log in">
  68.   </label>
  69. </form>
  70. </tr>
  71. </td>
  72. </table>
  73. </div>
  74. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement