witam,
mam problem z powrotem do poprzedniej strony po wypełnieniu formularza kontaktowego w przeglądarce Mozilla Firefox i Explorer,
w Opera działa poprawnie,
link do strony: www.czyste-okno.pl
Poniżej kod skryptu PHP
<style type="text/css">
body,td,th {
color: #5E0000;
}
body {
background-color: #fff;
background-image: url(templates/img/bg.jpg);
background-repeat: repeat;
}
a:link {
color: #000;
}
a:visited {
color: #000;
}
a:hover {
color: #CCC;
}
a:active {
color: #000;
}
</style>
<?PHP
$email = $_POST['email'];
$imie = $_POST['imie'];
$telefon = $_POST['telefon'];
$content = $_POST['content'];
if(!$email == "" && (!strstr($email,"@") || !strstr($email,"."))) {
print '<table width="400" height="117" background="templates/img/back.png" align="center"><tr><td align="center"><font color="#000"><strong>Wpisz poprawny adres e-mail!<br><a href="#" onclick="history.back();">POWROT</a></strong></font><br></td></tr></table>'; }
print '<table width="400" height="117" background="templates/img/back.png" align="center"><tr><td align="center"><font color="#000"><strong>Wypelnij wszystkie pola oznaczone gwiazdka!<br><a href="#" onclick="history.back();">POWROT</a></strong></font></td></tr></table>'; }
$adresat = 'info@czyste-okno.pl'; // pod ten adres zostanie wys3ana // wiadomosc
$message = "Imię i Nazwisko: $imie \n
Telefon: $telefon \n
Wiadomość: $content \n";
$header = "From:".$_POST['email'].$emial."\nContent-Type:".
' text/plain;charset="iso-8859-2"'.
"\nContent-Transfer-Encoding: 8bit";
if (mail($adresat, 'Wiadomosc ze strony czyste-okno', $message, $header)) print '<table width="400" height="117" background="templates/img/back.png" align="center"><tr><td align="center"><font color="#000"><strong>E-mail zostal wyslany.<br><a href="#" onclick="history.back();">POWROT</a></strong></font></td></tr></table>'; else
print '<table width="400" height="117" background="templates/img/back.png" align="center"><tr><td align="center"><font color="#000"><strong>Blad! Nie wyslano e-maila.<br><a href="#" onclick="history.back();">POWROT</a></strong></font></td></tr></table>'; ?>
z góry dzięki za pomoc
PS: próbowałem też <a href="#" onclick="history.go(-1);">POWROT</a>
Powód edycji: [thek]: bbCode! Teraz poprawiam bo jesteś nowy. Kolejnym razem zamknę temat bez żanego "ale"