<div class="right_col" role="main">

    <div class="">

        <div class="row">

            <div class="col-md-12 col-sm-12 col-xs-12">

                <div class="x_panel">

					<div class="x_title">

						<h2>Guest Detail</h2>

						<div class="clearfix"></div>

					</div>

					<div class="x_content">



						<form class="form-horizontal form-label-left" method="post">



							<div class="item form-group">

								<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Full Name <span class="required">*</span>

								</label>

								<div class="col-md-6 col-sm-6 col-xs-12">

									<input id="name" class="form-control col-md-7 col-xs-12" name="name" placeholder="Farhan Kamarzaman" type="text" required>

								</div>

							</div>

							<div class="item form-group">

								<label class="control-label col-md-3 col-sm-3 col-xs-12" for="contact">Contact <span class="required">*</span>

								</label>

								<div class="col-md-6 col-sm-6 col-xs-12">

									<input type="text" id="contact" name="contact" data-validate-length-range="8,20" class="form-control col-md-7 col-xs-12" required>

								</div>

							</div>

							<div class="ln_solid"></div>

							<div class="form-group">

								<div class="col-md-6 col-md-offset-3">

									<button id="send" type="submit" class="btn btn-success" name="submit">Submit</button>

									<button type="submit" class="btn btn-primary" onclick="javascript:window.location='index.php?pagecontent=dashboard'">Cancel</button>

								</div>

							</div>

						</form>

					</div>

                </div>

            </div>

        </div>

    </div>

</div>



<?php 

	if(isset($_POST['submit'])){

		$fullname = $_POST['name'];
		$contact = $_POST['contact'];


		mysqli_query($conn, "INSERT INTO users (u_fullname, u_contact) VALUES ('$fullname','$contact')") or die (mysql_error());

		
		header('Location: index.php?pagecontent=reservation_new');  

		

	}

?>