<form action="second.php" method="post">
Vardas: <input type="text" name="name">
Slaptazodis: <input type="text" name="pass">
<input type="submit" name="submit" value="Ok">
</form>
<?php
if (isset($_POST['submit'])) {
echo "Tavo vardas ".$_POST['name'].", o slaptazodis ".$_POST['pass'];
}
?>