<?php
echo "
<form action='antras.php' method='post'>
<input type='text' name='fname' value='First name' />
<input type='text' name='pass' value='Your password' />
<input type='submit' name='submit' value='Siųsti' />
</form>
";
?>
<?php
$fname = $_POST['fname'];
$pass = $_POST['pass'];
echo "Welcome " . $fname . "<br />\n";
echo "Your password is " . $pass . "<br />\n";
?>