User PHP
User PHP
User PHP
php
$con= mysqli_connect("localhost", "root", "", "crudop");
if(isset($_POST['submit'])){
$name= $_POST['name'];
$email= $_POST['email'];
$mobile= $_POST['mobile'];
$password= $_POST['password'];
//inset query
$sql = "INSERT INTO leo (name,email,mobile,password)
VALUES ('$name','$email','$mobile','$password')";
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,
shrink-to-fit=no">
<title>Hello, world!</title>
</head>
<body>
<div class="container my-4">
<form method="POST">
<div class="form-group" >
<div class="form-group">
<label>Name</label>
<input type="text" class="form-control" name="name" placeholder="Name">
</div>
<label>Email</label>
<input type="text" class="form-control" name="email"
id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter
email">
</div>
<div class="form-group">
<label>Mobile Number</label>
<input type="text" class="form-control" name="mobile"
id="exampleInputPassword1" placeholder="Mobile Number">
</div>
<div class="form-group">
<label>Password</label>
<input type="password" class="form-control" name="password"
id="exampleInputPassword1" placeholder="Password">
</div>
</div>