Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="keywords" content="">
- <meta name="generator" content="Responsive Site Designer 1.5.1419">
- <title>Share to teach</title>
- <link rel="stylesheet" href="css/coffeegrinder.min.css">
- <link rel="stylesheet" href="css/wireframe-theme.min.css">
- <script>document.createElement( "picture" );</script>
- <script src="js/picturefill.min.js" class="picturefill" async="async"></script>
- <link rel="stylesheet" href="css/main.css">
- </head>
- <?php
- $name = $_REQUEST["myname"];
- $surname = $_REQUEST["mysurname"];
- $email = $_REQUEST["myemail"];
- $username = $_REQUEST["myusername"];
- $password = $_REQUEST["pass1"];
- $country = $_REQUEST["mycountry"];
- $city = $_REQUEST["mycity"];
- $type = $_REQUEST["mytype"];
- $school = $_REQUEST["myschool"];
- require_once("config.php");
- $link = mysqli_connect('$conn');
- if (!$conn ) {
- die('Connect Error: ' . mysqli_connect_error());
- }
- mysqli_query($conn , "INSERT INTO `teacher`(`TName`, `Tsurname`, `TUserName`, `Tpassword`, `TID`, `School`, `City`, `Country`, `Approved`)
- VALUES ($name,$surname,$username,$password,NULL,$school,$city,$country,'0')");
- mysqli_query(close);
- ?>
- <html>
- <form align="left" name="form1" method="onload" action="LOGIN_page.html">
- </html>
- <script>
- alert("The form was submitted");
- </script>
- <div>
- <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
- <tr>
- <td colspan="3"><strong>Confirm email and go to login page to log in</strong></td>
- </tr>
- <tr>
- <td>
- <form align="right" name="form1" method="POST" >
- <form action="LOGIN_page.html">
- <input name="submit2" type="submit" id="submit2" value="log in">
- </label>
- </form>
- </tr>
- </td>
- </table>
- </div>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement