<!DOCTYPE HTML>
<!--
	Spatial by TEMPLATED
	templated.co @templatedco
	Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
-->
<html>
<head>
	<title>HATSU HAIR</title>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body class="landing">

	<!-- Header -->
		<header id="header" class="alt">
			<h1><strong><a href="picture.php" class="button special"><font >HATSU</font></a></strong></h1>
			<nav id="nav">
				<ul>
					<li><a href="index.php"><font color="#6b770d">Home</font></a></li>
					<li><a href="picture.php"><font color="#6b770d">Picture</font></a></li>
					<li><a href="register.php"><font color="#6b770d">Register</font></a></li>

				</ul>
			</nav>

		</header>


		<a href="#menu" class="navPanelToggle"><span class="fa fa-bars"></span></a>




		<!-- One -->
			<section id="one" class="wrapper style1">
<center>
				<form method="post" action="register.php">Register Form <br>
  <table width="400" border="1" style="width: 400px">
    <tbody>
			<tr>
        <td>&nbsp;Name</td>
        <td><input name="txtName" type="text" id="txtName" size="35"></td></tr>
      <tr><td width="125"> &nbsp;Username</td>
      <td width="180">
      <input name="txtUsername" type="text" id="txtUsername" size="20"></td></tr>
				<tr>
        <td> &nbsp;Password</td>
        <td><input name="txtPassword" type="password" id="txtPassword">
        </td>
      </tr>
			<tr>
        <td>&nbsp;Phone</td>
        <td><input name="txtPhone" type="text" id="txtPhone" size="35"></td>
      </tr>
			<tr>
        <td>&nbsp;E-mail</td>
        <td><input name="txtEmail" type="text" id="txtEmail" size="35"></td>
      </tr>
      <tr>
        <td> &nbsp;Status</td>
        <td>
          <select name="ddlStatus" id="ddlStatus">
            <option value="USER">USER</option>
          </select>
				</td>
      </tr>
			<tr>
				<td>
					<?php
					$servername = "localhost";
					$username = "aaaa";
					$password = "aaaa";
					$dbname = "web";
					$conn = new mysqli($servername, $username, $password, $dbname);

					@ini_set('display_errors', '0');
					$name = $_POST["txtName"];
					$username = $_POST["txtUsername"];
					$password = $_POST["txtPassword"];
					$phone = $_POST["txtPhone"];
					$email = $_POST["txtEmail"];
					$status = $_POST["ddlStatus"];




					if ($conn->connect_error) {
					    die("Connection failed: " . $conn->connect_error);
					}
					// Check connection

				if ($name and $username and $phone and $email and $password and $status) {
						$sql = "INSERT INTO `member_` (`id`, `name`, `username`, `password`, `phone`, `email`, `status`)
						VALUES (NULL, '$name', '$username', '$password', '$phone', '$email', '$status')";


						if ($conn->query($sql) === TRUE) {

						    echo "<font color=\"green\"> Created successfully</font>";
						} else {
						    echo "Error: " . $sql . "<br>" . $conn->error;
						}

						$conn->close();

					}

					//	echo "<font color=\"red\">Please complete the information.</font>";


				?>

				</td>
			</tr>
    </tbody>
  </table>
  <br>
  <input type="submit" name="Submit" value="Save">

</form>
</center>

<div class="">

</div>

<section id="three" class="wrapper style1">
	<div class="container">
		<header class="major special">
			<h2>Choose your hair style</h2>
			<p>To build confidence for you</p>
		</header>
		<div class="feature-grid">
			<div class="feature">
				<div class="image rounded"><img src="images/pic09.jpg" alt="" /></div>
				<div class="content">
					<header>
						<h4>Curling men</h4>
						<p>Curling men</p>
					</header>
					<p>How To Get Curly Hair For Men
If you have straight hair, you may be wondering how to get curly hair for men. Fortunately.</p>
				</div>
			</div>

			<div class="feature">
				<div class="image rounded"><img src="images/pic10.jpg" alt="" /></div>
				<div class="content">
					<header>
						<h4>Women hair color</h4>
						<p>Women hair color</p>
					</header>
					<p>The new year is the best time to switch up your look — after all, new year, new you, right? If you're looking for some hair color inspiration, take a cue from these gorgeous blonde, brunette, red, and multi-tone hair hues that are going to be huge in 2019.</p>
				</div>
			</div>
			<div class="feature">
				<div class="image rounded"><img src="images/pic11.jpg" alt="" /></div>
				<div class="content">
					<header>
						<h4>Male haircut</h4>
						<p>Male haircut</p>
					</header>
					<p>Short haircuts for men are the go-to haircut styles for most guys. There is something very satisfying about going to the barber to get your hair all cleaned up and looking fresh.</p>
				</div>
			</div>
			<div class="feature">
				<div class="image rounded"><img src="images/pic12.jpg" alt="" /></div>
				<div class="content">
					<header>
						<h4>Curling women</h4>
						<p>Curling women</p>
					</header>
					<p>curls are the easiest way to glam up your look. If you weren't blessed with 'em naturally, there are some super simple ways to get those waves on your own.</p>
				</div>
			</div>
		</div>
	</div>
</section>

<!-- Four -->


<!-- Footer -->
<div class=><img width="1200" height="200" src="images/jjj0j1.jpg" alt="" /></div><br>
<footer id="footer">
<div class="container">
	<ul class="icons">
		<li><a href="https://www.facebook.com/hatsuhairubon/" class="icon fa-facebook"></a></li>


		</ul>

</footer>

<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>

</body>
</html>
