<?php
// Ivedam zodi
echo "<form method='post'><input type='name' name='txt'><input type='submit'></form>";
// Patikrinam ar ivestas zodis sutinka su, siuo atveju, tavozodis
if (isset($_POST['txt']) && $_POST['txt'] == 'tavozodis') {
// Vykdom redirect'o uzklausa i norima saita (zinoma, jeigu ivestis sutampa)
echo "<script type='text/javascript'>window.location=\"norimassaitas\"</script>\n";
}
?>