Websites With Source Code

Bootstrap Form



Bootstrap Form

<!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.2/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous">

    <title>Form</title>
</head>

<body>
    <div class="container mb-3">
        <h1 class="text-center text-primary">New Entery</h1>
        <form action="display.php" method="post">
         <div class="input-group">
<input type="text" name="fname" class="form-control"
placeholder="First Name" required>
            </div><br>

<input type="email" name="email" class="form-control"
placeholder="Email" required><br>

<input type="password" class="form-control"
placeholder="Password" name="password" id="password" required><br>

<textarea name="addrs" class="form-control"
placeholder="Address" cols="15" rows="3" required></textarea><br>

Gender :
<input type="radio" name="gen" value="male" required> Male
<input type="radio" name="gen" value="female"> Female<br><br>

Date of Birth :
<input type="date" class="form-control" name="dob"  required><br>

Lang :
<input type="checkbox" name="lang[]" value="eng" checked> Eng
<input type="checkbox" name="lang[]" value="hindi"> Hindi
<input type="checkbox" name="lang[]" value="guj"> Guj<br><br>

File Upload : <input type="file" name="file" id="file"><br><br>

Car :
<select name="car" class="form-control" required>
                <option value="">None</option>
                <option value="Alto">Alto</option>
                <option value="Tata">Tata</option>
                <option value="Nano">Nano</option>
            </select><br>

<button type="submit" name="sub"
class="btn btn-sm btn-outline-success">Submit</button>
<button type="reset"
class="btn btn-sm btn-outline-warning">Reset</button>
        </form>
    </div>

    <!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous">
    </script>

</body>
</html>