<?php
if($_POST['do'] == 'labas')
{
if($_SESSION['u_labas'] == 0){
echo "<form action='' method='post'><input type='submit' name='submit3' value='test' /><input type='hidden' value='labas' name='do'></form>";}
if ($_POST['submit3'] == "test") {
printf("<script>alert('AMEN!');</script>");
}
}
?>