<?php
ob_header();
?>
<?
if (isset($_POST["siunciam"])) {
if($_POST["vardas"] == "kazkoksvardas" && $_POST["slaptazodis"] == "kazkoks slaptazodis"){
header('Location: /admin.php?id=1');
} else {
echo "Neteisingai";
}
}
echo "<form action='".$PHP_SELF."' method='post' name='siunciam'>
<input type='text' name='vardas'>
<input type='password' name='slaptazodis'>
<input type='submit' name='siunciam' value='Bandom'>
</form>";
?>