I want that whenever i give username and password and submit it.The username will save into an array.and i will print all username using that array.
<?php
if(isset($_POST['submit'])){
echo "Welcome!"."<br>";
$username=$_POST['username'];
$password=$_POST['password'];
echo "Username = ".$username."<br>";
echo "Password = ".$password."<br>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form action="index.php" method="post">
<input type="text" name="username" placeholder="Username">
<input type="password" name="password" placeholder="Password">
<input type="submit" name="submit">
</form>
</body>
</html>