mam skrypt do wysyłania maila. Problem polega na tym że po wysłaniu mail i jak odświeżę stronę mail wysyła się ponownie.
wkleiłem header("Refresh: 1; url=../index.php") ale chcę żeby teraz na stronie index pojawiła się informacja że mail został wysłany. jak to zrobić?
<?php $get=new funkcje(); $blad=1; } else { $sql1="SELECT... "; $result1=$get->get_single_shot($sql1); $blad=0; }else { $blad=1; } } if ($blad == 0) { $sql2="select... "; $result=$get->get_single_shot($sql2); if ($result) { $list = "Witaj!"; $ok=1; } else { }}}} if($ok!=1){ ?> <form action="nowe_haslo.php"> <input type="text" name="mail" /> <input type="submit" class="przycisk" value="Wyślij" /> </form> <?php } ?>