<!DOCTYPE html><html><head><title>Text Input</title></head><body><form method="post"><input type="text" name="textInput" placeholder="Введите текст"/><input type="submit" value="Отправить"/></form><?php if(isset($_POST['textInput'])){echo htmlspecialchars($_POST['textInput']);}?></body></html>