simple and easy Registration form with php and MySQL with source code.
Registration form with php and MySQL by The right ways for youh
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" >
<!-- credit :-https://www.youtube.com/channel/UCQPqIVkCPcMH0T9azABPksw -->
<title>registration form by the right ways for youh</title>
<style type="text/css">
.container{
margin-top: 0%;
width: 400px;
border: ridge 1.5px white;
padding: 20px;
}
.footer{
}
</style>
</head>
<body>
<div>
<?php
if(isset($_POST['create'])){
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$phoneno = $_POST['phoneno'];
$email = $_POST['email'];
$password = $_POST['password'];
echo $firstname ." ".$lastname ." ".$phoneno ." ".$email ." ".$password;
}
?>
</div>
<section>
<h2 class="text-center bg-dark text-light text-xl-start">Registration Form</h2>
<div class="container">
<form action="bootstrapform.php" method="post" class="">
<div class="form-group">
<label for="firstname">First Name</label>
<input type="text" class="form-control" id="exampleInputfirstname" name="firstname">
</div>
<div class="form-group">
<label for="lastname">Last Name</label>
<input type="text" class="form-control" id="exampleInputlastname" name="lastname">
</div>
<div class="form-group">
<label for="phoneno">Phone Number</label>
<input type="text" class="form-control" id="exampleInputphoneno" name="phoneno">
</div>
<div class="form-group">
<label for="Email1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="email">
</div>
<div class="form-group">
<label for="Password">Password</label>
<input type="password" class="form-control" id="exampleInputPassword" name="password">
</div>
<button type="submit" class="btn btn-primary" name="create">Sign up</button>
</form>
</div>
<div class="bg-light py-4">
<div class="container text-center">
<p class="text-muted mb-0 py-2">© The right ways for youh All rights reserved.</p>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
</body>
</html>

Comments
Post a Comment