İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Gönder Tuşu Acil Yardım

whys

0
İyinet Üyesi
Katılım
24 Ocak 2014
Mesajlar
2
Reaction score
0
Merhaba, ben bir türlü içinden çıkamadım. Şimdiden teşekkür ederim.

Gönder tuşuna bastığında iletisim.php de iken gonderildi.php aynı sayfada "_self" yönlendirilmesini yapamadım. Lütfen bu konuda bana yardımcı olur musunuz teşekkür ederim.

<?php
if ($_POST) {
$kime = "[email protected]";
$ileti = $_POST['mesaj_txt'];
if (!$ileti) {
$sonucyaz = "";
}
else {
$kimden = $ileti;

$konu = "$ileti";

$mesaj = $ileti;

$header .= "From: $kimden <$kimden>\n";

$header .= "Content-Type: text/html; charset=utf-8\n";

$sent = mail($kime, $konu, $mesaj, $header);
if ($sent) {
$sonucyaz = "";

}
}
}
?>

<form action="<?php echo $_SERVER['PHP_SELF']?>" method="post" >

<?php if($sonucyaz) { echo $sonucyaz; $sonucyaz = lisanssız; } ?>

<input name="mesaj_txt" placeholder="mesaj" class="" type="password">

<input class="buttonCss buttonCssGit" type="submit" name="iletisimgonder" value="Gönder"/>

</form>
 

avdiel

0
İyinet Üyesi
Katılım
8 Ocak 2014
Mesajlar
6
Reaction score
0
<form action="" method="post">
<?php if($sonucyaz) { echo $sonucyaz; $sonucyaz = lisanssız; } ?>
<input name="mesaj_txt" placeholder="mesaj" class="" type="password">
<input class="buttonCss buttonCssGit" type="submit" name="iletisimgonder" value="Gönder"/>
</form>
<?php
if ($_POST) {
$kime = "[email protected]";
$ileti = $_POST['mesaj_txt'];
if (!$ileti) {
$sonucyaz = "";
}
else {
$kimden = $ileti;

$konu = "$ileti";

$mesaj = $ileti;

$header .= "From: $kimden <$kimden>\n";

$header .= "Content-Type: text/html; charset=utf-8\n";

$sent = mail($kime, $konu, $mesaj, $header);
if ($sent) {
$sonucyaz = "";

}
}
}
?>

Bu şekilde yapıştır dene, düzeleceğini umuyorum :)
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Üst