Sitenize bir iletişim formu istiyorsanız bunu deneyin. Veritabanı bağlantısı gerekmiyor.
Aşağıdaki Kodları Notepad a kopyalayın ve iletisim.php diye kaydedin
<?php
///////////////////////////////////////////////
// //
// Email Form v 1.1 //
// ----------------------------------------- //
// by Graeme (webmaster@phpscriptcenter.com) //
// http://www.phpscriptcenter.com //
// //////////////////////////////
// PHP Script CENTER offers no warranties on this script. //
// The owner/licensee of the script is solely responsible for any //
// problems caused by installation of the script or use of the script //
// //
// All copyright notices regarding Email Form, must remain //
// intact on the scripts and in the HTML for the scripts. //
// //
// (c) Copyright 2001 PHP Script CENTER //
// //
// For more info on Email Form, //
// see http://www.phpscriptcenter.com/emailform.php //
// //
///////////////////////////////////////////////////////////////////////////
// your name
$yourname = "E-mail Form";
// your email
$youremail = "mail@mail.com";
// Default Send Page
$yourdefaultsend = "http://www.siteisim.com/iletisim.php";
////////////////////////////////////////////////////////////////////////////
// DO NOT EDIT BELOW THIS LINE //
////////////////////////////////////////////////////////////////////////////
if($submitform) {
$dcheck = explode(",",$require);
while(list($check) = each($dcheck)) {
if(!$$dcheck[$check]) {
$error .= "Missing $dcheck[$check]<BR>";
}
}
if($error) {
?>
<P><CENTER><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD WIDTH="100%" BGCOLOR="#004080">
<TABLE WIDTH="394" BORDER="0" CELLSPACING="1" CELLPADDING="2">
<TR>
<TD WIDTH="26%" BGCOLOR="#004080">
<P><B><FONT COLOR="#ffffff" SIZE="-1" FACE="Verdana">HATA !</FONT></B></TD>
</TR>
<TR>
<TD WIDTH="26%" BGCOLOR="#ffffff">
<FONT COLOR="#000000" SIZE="-1" FACE="Verdana"><?php echo $error; ?></FONT></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE></CENTER>
<P><CENTER> </CENTER></P>
<?php
exit();
}
if ($fromname) {
$yeshow = "\nFrom, $fromname\n";
}
mail($toemail,"$subject","
$message
$yeshow
","From: $fromname <$fromemail>");
header("Location: $sendpage");
exit();
} else {
?>
<FORM ACTION="http://www.siteisim.com/iletisim.php" METHOD="POST">
<P><CENTER><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
<TR>
<TD WIDTH="100%" BGCOLOR="#004080">
<TABLE WIDTH="394" BORDER="0" CELLSPACING="1" CELLPADDING="2">
<TR>
<TD COLSPAN="2" BGCOLOR="#004080">
<B><FONT COLOR="#ffffff" SIZE="-1" FACE="Verdana">İletişim Formu: Görüşleriniz bizim için önemlidir.</FONT></B></TD>
</TR>
<TR>
<TD WIDTH="48%" BGCOLOR="#ffffff">
<B><FONT COLOR="#000000" SIZE="-1" FACE="Verdana">İsminiz/Your Name:</FONT></B></TD>
<TD WIDTH="52%" BGCOLOR="#ffffff">
<INPUT NAME="fromname" TYPE="text" SIZE="25">
</TD>
</TR>
<TR>
<TD WIDTH="48%" BGCOLOR="#ffffff">
<B><FONT COLOR="#000000" SIZE="-1" FACE="Verdana">Email:</FONT></B></TD>
<TD WIDTH="52%" BGCOLOR="#ffffff">
<INPUT NAME="fromemail" TYPE="text" SIZE="25">
</TD>
</TR>
<TR>
<TD COLSPAN="2" BGCOLOR="#ffffff">
<B><FONT COLOR="#000000" SIZE="-1" FACE="Verdana">Mesajınız/Message:<BR><INPUT
TYPE="hidden" NAME="subject" VALUE="Contact Form">
<INPUT TYPE="hidden" NAME="toemail" VALUE="<?php echo $youremail; ?>">
<INPUT TYPE="hidden" NAME="toname" VALUE="<?php echo $yourname; ?>">
<INPUT TYPE="hidden" NAME="require" VALUE="fromname,fromemail,message">
<INPUT TYPE="hidden" NAME="sendpage" VALUE="<?php echo $yourdefaultsend; ?>">
<TEXTAREA NAME="message" ROWS="5" COLS="45"></TEXTAREA></FONT></B></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE></CENTER></P>
<P><CENTER><INPUT NAME="submitform" TYPE="submit" VALUE="Gönder/Submit"></CENTER></FORM></P>
<P><CENTER> </CENTER></P>
<?php
exit();
}
?>
Ardından
Yeni Sayfa Oluştur > Php Sayfası Oluştur
<?php
/*
Write code inserting output inside
variable $content as in following example.
You have DB connection, all global vars
and all MKPortal and Forum functions at your availability
*/
$nome = $mkportals->member['name'];
$content="İletişim";
$content = implode("", file("http://www.siteisim.com/iletisim.php"));
1. kod$youremail = "
Buraya Kendi mail adresinizi yazın";
$yourdefaultsend = "
Burayada iletisim.php dosyanızın yolunu yazın. Örnegin; Linkleri Görebilmek İçin
Kayıt Olun veya Giriş Yapınwww.sitem.com/iletisim.php
";
2. Kod$content = implode("", file("
Burayada İletişim Adresinizin Yolunu bulun"));
Kolay Gelsin.
"Bu Konuya Teşekkür Edenler":
numan_286, AdmiN, SaHiN22, berat9544