Réponse acceptée !
Saell og blesuð
<?php if(isset($_POST['text']) && !empty($_POST['text'])){ $a=explode("\n",$_POST['text']); $nb_lignes=
count($a);
for($i=0;$i<=$nb_lignes-1;$i++){ echo $a[$i],'<br />'; } } ?>
<form method="POST"> <textarea name="text"></textarea> <input type="submit" value="send" /> </form>
Vilhjálms
Sigurðsdóttir aka Frëyjá
|