<script type="text/javascript"> $(function(){ var removeLink = ' <a class="remove" href="#" onclick="$(this).parent().slideUp(function(){ $(this).remove() }); return false">usun</a>'; $('a.copy').relCopy({ append: removeLink}); }); </script> </head><body> <form method="post" action="teest.php"> <p class="phone"> <input name="Adresat[]" class="input" type="text"> <input name="Adres[]" class="input" type="text"> <input name="Koszt[]" class="input" type="text"></p> <p><a href="#" class="copy" rel=".phone">dodaj kolejne</a></p> <input value=" Submit " type="submit"> </form> <?php if($_POST['pole']) { $array=$_POST['Adresat']; foreach($array as $pole) { if(strlen($Adresat)>0) { echo $Adresat.' '; } } } ?>
Jak teraz zrobić, aby wyświetliły mi się też dane z pól adres i koszt ?