Código:
<form name="form1" method="post" action="index.php"> <label for="input"></label> <input type="text" name="input" id="input"> </form> <?php if(isset($_POST['input'])) { $algo=array(); $algo[]=$_POST['input']; foreach ($algo as $v) { echo $v ; } } ?>