<?php if (isset($_POST['name']) && $_POST['name'] == 'slaptazodis') { echo "Tekstas prisijungusiam žmogui"; } else { echo "<form method=post><input type=name name=name><input type=submit></form>"; } ?>