<form method="post" action="" > <input type="text" name="algo" /><br /> <input type="submit" value="hola" /><br /> <input type="text" name="" value="<?php @$hola=$_POST['algo']; echo $hola; ?>"/> </form>