mam taki formularz:
<?php $wyslana=not; { ////////// USTAWIENIA ////////// $email = 'aaa@aaa.pl'; // Adres e-mail adresata $subject = 'Title'." " . $dat ." | " . $godz; // Temat listu $message = 'komu'; // Komunikat $error = 'error'; // Komunikat błędu $charset = 'utf-8'; // Strona kodowa ////////////////////////////// $head = "MIME-Version: 1.0\r\n" . 'From:'.$_POST['emial']."\r\n". "Content-Type: text/plain; charset=$charset\r\n" . "Content-Transfer-Encoding: 8bit"; $body = ''; foreach ($_POST as $name => $value) { { { } } } echo mail($email, "=?$charset?B?" . base64_encode($subject) . "?=", $body, $head) ? $message : $error; $wyslana=ok; } else { ?> <div style="background: #fffcde; padding: 5px 5px; border: 4px dotted #AD8547; width: 640px; margin: 650px auto 50px; text-align:center;"> <div class="box"> <form action="?" method="post"> <label><span><input type="checkbox" name="zaznacz" value="0" class="ck" /></span> Tak, chcę Fakturę VAT oraz Listę Mocnych Profili.</label> <label><span>Imię:</span> <input type="text" name="imie" class="wpis" required="required" /></label> <label><span>Nazwisko:</span> <input type="text" name="nazwisko" class="wpis" required="required" /></label> <label><span>Nazwa firmy:</span> <input type="text" name="firma" class="wpis" /></label> <label><span>Ulica i nr.:</span> <input type="text" name="ulica" class="wpis" /></label> <label><span>Kod i miasto:</span> <input type="text" name="miasto" class="wpis" /></label> <label><span>NIP:</span> <input type="text" name="nip" class="wpis" /></label> <label><span>E-mail:</span> <input type="text" name="emial" class="wpis" required="required" /></label> <label><span>Dodatkowe informacje:</span><textarea name="tresc" class="wiadomosc" cols="20" rows="10"></textarea></label> <label><input type="submit" class="button" value="Wyślij!" /></label> </form> </div> </div> <?php } ?>
Mam problem. Dlaczego po wysłaniu formularza nie przenosi mnie na domenę określoną w: if ($wyslana==ok){header("location:https://doemna.pl");}
Po wysłaniu wiadomości przenosi mnie na domena.pl/?
Na innej domenie formularz mam na podstronie i tam wszystko działa. tutaj formularz mam na stronie głównej i już nie działa.
Czy możecie pomóc?