<html>
<head>
<style>
</style>
</head>
<body>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (empty($_POST["Mytxt"])) {
$MytxtErr = "Hech narsa yozmadingiz !";
} else {
$Mytxt = test_input($_POST["Mytxt"]);
}
}
?>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
<input type="text" name="Mytxt">
<span class="error">* <?php echo $MytxtErr;?></span>
<br><br>
<input type="submit" name="submit" value="Go!">
</form>
<?php
echo $name;
?>
</body>
</html>