When executing this script
<?php $name = $_POST ['user']; $comment = $_POST ['comment']; $str = ":"; for ($i = 0; $i < count($name); $i++){ $s = $_POST['namepost'] . $name . ":" . "<br />"; } for ($j = 0; $j < count($comment); $j++){ $st = $_POST['namepost2'] . $comment . "<br />"; } ?> <form name="someform" method="post"> <p><b>ΠΠ°ΡΠ΅ ΠΈΠΌΡ:</b><br> <input type="text" size="40" name="user"> <input type="hidden" name="namepost" value="<?=$s?>"> <input type="hidden" name="namepost2" value="<?=$st?>"> </p> <p><b><?=$s?></b><?=$st?></p> <p><textarea name="comment" cols="40" rows="3" placeholder="ΠΠ²Π΅Π΄ΠΈΡΠ΅ ΠΊΠΎΠΌΠΌΠ΅Π½ΡΠ°ΡΠΈΠΉ"></textarea></p> <p><input type="submit" value="ΠΡΠΏΡΠ°Π²ΠΈΡΡ"> </form> If you enter for example a couple of comments from the relevant users, the following picture is displayed above the comment input field:
I:
Is he:
ahhh
Yu
And you need to display one by one:
I: ahhh
He: Yu