Commit 48655663 authored by Aruchira's avatar Aruchira

Initial commit

parents
Pipeline #721 canceled with stages
<?php
$dbcon = mysql_connext('localhost','root','123456','regit');
if(mysql_connext_error()){
echo"เข้าไม่ได้". mysql_connext_error();
}
mysql_set_charset($dbcon, 'utf8');
\ No newline at end of file
TITLE:
Glow - 100% Fully Responsive Free HTML5 Bootstrap Template
AUTHOR:
DESIGNED & DEVELOPED by FREEHTML5.co
Website: http://freehtml5.co/
Twitter: http://twitter.com/fh5co
Facebook: http://facebook.com/fh5co
CREDITS:
Bootstrap
http://getbootstrap.com/
jQuery
http://jquery.com/
jQuery Easing
http://gsgd.co.uk/sandbox/jquery/easing/
Modernizr
http://modernizr.com/
Google Fonts
https://www.google.com/fonts/
Google Map
https://maps.google.com/
Icomoon
https://icomoon.io/app/
Respond JS
https://github.com/scottjehl/Respond/blob/master/LICENSE-MIT
animate.css
http://daneden.me/animate
jQuery Waypoint
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
Superfish Menu
http://users.tpg.com.au/j_birch/plugins/superfish/examples/
hoverIntent
https://github.com/briancherne/jquery-hoverIntent
Stellar Parallax
http://markdalgleish.com/projects/stellar.js/
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<script src="js/modernizr-2.6.2.min.js"></script>
</head>
<body>
<div id="wrapper">
<div id="fh5co-header"></div>
<header id="fh5co-header-section">
<div class="container">
<div class="nav-header">
<a href="#" class="js-fh5co-nav-toggle fh5co-nav-toggle"><i></i></a>
<h1 id="fh5co-logo"><a href="index.html">Fiction</a></h1>
<!-- START #fh5co-menu-wrap -->
<nav id="fh5co-menu-wrap" role="navigation">
<ul class="sf-menu" id="fh5co-primary-menu">
<li>
<a href="index.html" class="fh5co-sub-ddown">ติดต่อแอดมิน</a>
</nav>
</div>
</div>
</header>
</div>
<div class="fh5co-hero">
<div class="fh5co-overlay"></div>
<div class="fh5co-cover text-center" data-stellar-background-ratio="0.5" style="background-image: url(images/1.jpg);">
<div class="desc animate-box">
<h2>ร้านหนังสือนิยายออนไลน์</h2>
<span>สำหรับนักอ่านทั้งหลาย ซึ่งเป็นแหล่งรวบรวมนิยายมาไว้ให้เลือกสรร และยังสามารถแต่งนิยายของตัวเองและโพสให้สมาชิกท่านอื่นที่สนใจอ่านกันได้อีกด้วย </span>
<p><a class="btn btn-primary btn-lg btn-learn" href="#">สมัคสมาชิก</a> <a class="btn btn-primary btn-lg popup-vimeo btn-video" href="https://vimeo.com/channels/staffpicks/93951774"><i></i>เข้าสู่ระบบ</a></p>
</div>
</div>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Jekyll v3.8.5">
<title>สมัคสมาชิก</title>
<link rel="canonical" href="https://getbootstrap.com/docs/4.3/examples/checkout/">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="form-validation.css" rel="stylesheet">
</head>
<body class="bg-light">
<div class="container">
<div class="py-5 text-center">
<h2>สมัคสมาชิก</h2>
</div>
<from action="regitster.html" method="POST">
<div class="col-md-8 order-md-1">
<h4 class="mb-3">กรอกข้อมูลให้ครบถ้วน</h4>
<form class="needs-validation" novalidate>
<div class="row">
<div class="col-md-6 mb-3">
<label for="firstName">First name</label>
<input type="text" class="form-control" id="firstName" placeholder="" value="" required>
<div class="invalid-feedback">
Valid first name is required.
</div>
</div>
<div class="col-md-6 mb-3">
<label for="lastName">Last name</label>
<input type="text" class="form-control" id="lastName" placeholder="" value="" required>
<div class="invalid-feedback">
Valid last name is required.
</div>
</div>
</div>
<div class="mb-3">
<label for="username">Username</label>
<div class="input-group">
<div class="input-group-prepend">
</div>
<input type="text" class="form-control" id="username" placeholder="Username" required>
<div class="invalid-feedback" style="width: 100%;">
Your username is required.
</div>
</div>
</div>
<div class="mb-3">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" required >
<div class="invalid-feedback">
</div>
</div>
<hr class="mb-4">
<button class="btn btn-primary btn-lg btn-block" type="submit">ยืนยัน</button>
</html>
<?php
require 'Connext.php';
$login_firstname = $_POST['firstname'];
$login_lastname = $_POST['lastname'];
$login_user = $_POST['username'];
$login_password = $_POST['password'];
$query = "INSERT INTO tb_regit (login_firstname,login_lastname,login_user,login_password) VALUE ('$login_firstname','$login_lastname','$login_user','$login_password');"
$result = mysql_query ($dbcon,$query);
if ($result){
header("Location: index.html")
} else{
echo "error". mysql_erroe($dbcon);
}
mysql_close($dbcon);
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment