Skip to content

codermahadi/PHPcourse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPcourse

oop and basic php note book

GET and POST Method

<form method="POST" action="index.php">
                <div class="form-group">
                    <label for="exampleInputEmail1">Email address</label>
                    <input type="email" class="form-control" name="email" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
                    <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword1">Password</label>
                    <input type="password" name="pass" class="form-control" id="exampleInputPassword1" placeholder="Password">
                </div>
                <div class="form-group form-check">
                    <input type="checkbox" class="form-check-input" id="exampleCheck1">
                    <label class="form-check-label" for="exampleCheck1">Check me out</label>
                </div>
                <button type="submit" class="btn btn-primary">Submit</button>
            </form>
  • PHP
<?php

    if (isset($_POST['email'])){
        echo $_POST['email'];
    }
    echo '<br />';

    if (isset($_POST['pass'])){
        echo $_POST['pass'];
    }

    ?>

About

oop and basic php note book

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages