Php.NET-Ders 50 : İletişim Formu-1

1 2
30/07/2011, 16:30

berk_okan

30/07/2011, 16:43

boolean_

Paylaşım için teşekkürler
31/07/2011, 11:00

DUAYEN

Emek ve paylaşım için teşekkürler.
04/07/2012, 16:29

mqhmq

sa geçler yardım edin çok önemli bu kod php dream wearda açılıyor gönder çalışmıyor niye


İletişim.php

<!DOCTYPE Html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>iletisim</title>
</head>

<body>
<table width="222" border="1">
<tr>
<td width="46">Ad</td>
<td width="8">:</td>
<td width="146"><form id="form1" name="iletisim" method="post" action="gonder.php">
<label for="ad"></label>
<input type="text" name="ad" id="ad" />
</form></td>
</tr>
<tr>
<td>Soyad</td>
<td>:</td>
<td><input type="text" name="soyad" id="soyad" /></td>
</tr>
<tr>
<td>E-mail</td>
<td>:</td>
<td><input type="text" name="mail" id="mail" /></td>
</tr>
<tr>
<td>Tel</td>
<td>:</td>
<td><input type="text" name="tel" id="tel" /></td>
</tr>
<tr>
<td>Mesaj</td>
<td>:</td>
<td><input type="text" name="mesaj" id="mesaj" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><form id="form2" name="form2" method="post" action="">
<input type="submit" name="Gonder" id="Gonder" value="Gonder" />
</form></td>
</tr>
</table>
</body>
</html>


gönder.php

<!DOCTYPE Html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11"><meta name="robots" content="noodp,noarchive"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="msvalidate.01" content="802B4FCC2AB913A2972C8DF68B02A202"><meta http-equiv="content-language" content="tr"> </head>

<?php

$isim=$_POST["isim"];
$soyad=$_POST["soyad"];
$mail=$_POST["mail"];
$tel=$_POST["tel"];
$mesaj=$_POST["mesaj"];



$emailadresi="recep@neroendustri.com";
$emailkonusu="iletisim Formu";


if (empty($isim) or empty($soyad) or empty($mail) or empty($mesaj) or empty($tel))
{
print ("Lütfen bütün alanlari eksiksiz olarak doldurunuz. <br>");
print('<a href="http://neroendustri.com/recep/iletisim.php">Form Sayfasina Geri Dön</a>');
}
else
{

$emailicerigi="
isim: $isim
Soyad: $soyad
E-Mail: $mail
Yorum: $yorum
Tel: $tel";

if(@mail($emailadresi,$emailkonusu,$emailicerigi))
{

echo "E-Mailiniz basarili bir sekilde gönderilmistir. ilginize tesekkür ederiz...!!! ";
print('<a href="http://neroendustri.com">Form Sayfasina Geri Dön</a>');
}
}

?>
04/07/2012, 16:35

mqhmq

sa geçler yardım edin çok önemli bu kod php dream wearda açılıyor gönder çalışmıyor niye


İletişim.php

<!DOCTYPE Html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>iletisim</title>
</head>

<body>
<table width="222" border="1">
<tr>
<td width="46">Ad</td>
<td width="8">:</td>
<td width="146"><form id="form1" name="iletisim" method="post" action="gonder.php">
<label for="ad"></label>
<input type="text" name="ad" id="ad" />
</form></td>
</tr>
<tr>
<td>Soyad</td>
<td>:</td>
<td><input type="text" name="soyad" id="soyad" /></td>
</tr>
<tr>
<td>E-mail</td>
<td>:</td>
<td><input type="text" name="mail" id="mail" /></td>
</tr>
<tr>
<td>Tel</td>
<td>:</td>
<td><input type="text" name="tel" id="tel" /></td>
</tr>
<tr>
<td>Mesaj</td>
<td>:</td>
<td><input type="text" name="mesaj" id="mesaj" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><form id="form2" name="form2" method="post" action="">
<input type="submit" name="Gonder" id="Gonder" value="Gonder" />
</form></td>
</tr>
</table>
</body>
</html>


gönder.php

<!DOCTYPE Html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11"><meta name="robots" content="noodp,noarchive"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="msvalidate.01" content="802B4FCC2AB913A2972C8DF68B02A202"><meta http-equiv="content-language" content="tr"> </head>

<?php

$isim=$_POST["isim"];
$soyad=$_POST["soyad"];
$mail=$_POST["mail"];
$tel=$_POST["tel"];
$mesaj=$_POST["mesaj"];



$emailadresi="recep@neroendustri.com";
$emailkonusu="iletisim Formu";


if (empty($isim) or empty($soyad) or empty($mail) or empty($mesaj) or empty($tel))
{
print ("Lütfen bütün alanlari eksiksiz olarak doldurunuz. <br>");
print('<a href="http://neroendustri.com/recep/iletisim.php">Form Sayfasina Geri Dön</a>');
}
else
{

$emailicerigi="
isim: $isim
Soyad: $soyad
E-Mail: $mail
Yorum: $yorum
Tel: $tel";

if(@mail($emailadresi,$emailkonusu,$emailicerigi))
{

echo "E-Mailiniz basarili bir sekilde gönderilmistir. ilginize tesekkür ederiz...!!! ";
print('<a href="http://neroendustri.com">Form Sayfasina Geri Dön</a>');
}
}

?>
26/09/2013, 00:31

kursad05

linkler ölü galiba
1 2