index
2 years ago in PHP
<?php
ob_start();
session_start();$_SESSION['name'] = $_POST['text'];
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form id="form" class="form" method="post" action="post.php">
<label for="text">user name</label>
<input type="text" id="name" >
<br />
<label for="password">password</label>
<input type="text" id="password" >
<br />
<input type="submit" id="submit" class="submit" value="confirm">
</form>
</body>
</html>