session_start(); $_SESSION["name"] = $_POST["name"]; $_SESSION["email"] = $_POST["email"]; header("Location: ".$_SERVER["HTTP_REFERER"]); exit; ?> HTML-код формы: <form name="myform" action="request.php" method="post"> <input type="text" name="name" value="<?=$_SESSION["name"]?>" /> <input type="text" name="email" value="<?=$_SESSION["email"]?>" /> <input type="password" name="password" /> </form>