php
PHP İLE ANKET YAPMA KODU
(PHP Anket) ScriptCi.Com
--------------------------------------------------------------------------------------------
<html><head> <!-- --> body,td,th { --></style><a name="ust"> --></a><!-- --> body,td,th { --></style><a name="ust"> --></a>
</head>
<body>
<form action="anket.php" method="post" name="anket">
<table border="1" width="350" cellspacing="0" cellpadding="0" bordercolor="#000000">
<tbody>
<tr>
<td width="100%" colspan="2">
<p align="left"><b>Hangi İşletim Sistemini Kullanıyorsunuz?</b></p>
</td>
</tr>
<tr>
<td><input type="radio" name="sonuc" value="1">
</td>
<td width="96%">Windows 95/98</td>
</tr>
<tr>
<td><input type="radio" name="sonuc" value="2"> </td>
<td width="96%">Windows ME</td>
</tr>
<tr>
<td><input type="radio" name="sonuc" value="3"> </td>
<td width="96%">Windows NT/2000</td>
</tr>
<tr>
<td><input type="radio" name="sonuc" value="4"></td>
<td width="96%">LİNUX</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="Gönder" > <input type="reset" value="Temizle"></td>
</tr>
</tbody>
</table>
</form>
</body></html>
ZİYERTCİ DEFTERİ YAPAM PHP
####################################
# #
# Nt-reklam #
# Ziyaret-Çİ Defteri Tasarım Kodlama By Serkan GÜL #
# www.nt-reklam.tr.gg #
# #
####################################
<meta content="text/html; charset=iso-8859-9" http-equiv="Content-Type" />
<meta content="Ziyaretçi Defteri" name="keywords" />
<meta content="Ziyaretçi Defteri" name="description" />
<meta content="tr" http-equiv="Content-Language" /><style type="text/css">
<!--
color: #0099FF;
font-size: 16x;
}
.style1 {color: #99CC00}
.style2 {color: #0099FF}
.style3 {color: #FF0000}
body {
background-color: #F8F8F8;
}
.style5 {
color: #99CC00;
font-size: large;
font-weight: bold;
}
.style16 {color: #0099FF; font-size: 14px; }
.style18 {color: #99CC00; font-size: 14px; font-weight: bold; }
-->
<!--
####################################
# #
# Nt-reklam #
# Ziyaret-Çİ Defteri Tasarım Kodlama By Serkan GÜL #
# www.nt-reklam.tr.gg #
# #
####################################
.style19 {color: #666666}
a:hover {
color: #000033;
}
a:active {
color: #000033;
}
.style20 {
color: #333333;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style22 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #0066CC;
}
.style23 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #0066CC;
}
<table width="600" align="center" border="0">
<tbody>
<tr>
<th scope="row" bgcolor="#ffffff">
<table width="600" border="0">
<tbody>
<tr>
<th scope="row"><br />
<span class="style5"># # # # # Z i y a r e t ç i D e f t e r i # # # # # </span><hr class="style2" />
</th>
</tr>
</tbody>
</table>
<br />
<table width="600" align="center" border="0">
<tbody>
<tr>
<th scope="row">
<form action="ziyaretci_defteri.php" method="post">
<fieldset>
<div align="left"><span class="style2">Adınız:</span> <input class="style1" name="adi" type="text" /></div>
<p align="left"><span class="style2">Görüşleriniz: </span><br />
<textarea class="style1" rows="4" cols="50" name="mesaj"></textarea></p>
<p align="left"><input class="style2" type="submit" name="Gonder" value="Gönder" /> <input class="style2" type="reset" name="Sil" value=" Sil " /></p>
</fieldset>
</form>
</th>
</tr>
</tbody>
</table>
<table width="600" border="0">
<tbody>
<tr>
<th scope="row" align="left">
<table width="638" align="left" border="0">
<tbody>
<tr>
<th scope="col" align="left"><!--
$_GET ["git"];
if ($_GET["git"]=="yorumlar"){
include 'DateBase';
}
--></th>
</tr>
</tbody>
</table>
<p> </p>
<table width="341" align="left" border="0">
<tbody>
<tr>
<th scope="col" width="335">
<div align="left"><span class="style22"><a class="style22" href="ziyaretci_defteri.php">Ziyaretçi Defteri</a></span><span class="style20"> <strong>|</strong> </span><span class="style22"><a class="style23" href="?git=yorumlar">Yorumları Göster</a></span> <span class="style20"><strong>|</strong></span> <a class="style23" href="http://www.nt-reklam.tr.gg">Nt-reklam </a></div>
</th>
</tr>
</tbody>
</table>
<p><br />
<br />
<span class="style3"><!--
####################################
# #
# Nt-reklam #
# Ziyaret-Çİ Defteri Tasarım Kodlama By Serkan GÜL #
# www.nt-reklam.tr.gg. #
# #
####################################
$adi = $_POST ['adi'];
$mesaj =$_POST['mesaj'];
if ($_POST[Gonder] == "" ){
echo "
<tr >
<td class='style14'><strong class='style14'><font color='red'><a class='style14' href='ziyaretci_defteri.php' _fcksavedurl='ziyaretci_defteri.php'><font color='red'><b>#</b></font></a> Deftere yazarken boş alan bırakmayın</strong></font>
</tr>
</td>
";
echo (exit );
}
if ($_POST[adi] == "" ){
echo "<strong class='style14'>Adınızı Girmediniz...</strong>";
echo (exit ); }
elseif ($_POST[mesaj] == "") {
echo "<strong class='style3'>Görüşünüzü bildirmediniz...</strong>";
echo (exit );}
$dosya = DateBase;
touch ($dosya);
print ("");
$dosya_adi = $dosya;
$dosya = fopen ($dosya_adi , 'a') or die ("Dosya açılamadı!");
$metin = "<strong class='style1'>Adı: </strong>" .strip_tags($_POST[adi]) ."<-->"; fwrite ( $dosya , $metin ) ; </span></p>
<center>Nt-Reklam.tr.gg </center>; fclose ($dosya); echo '
<table width="600" border="0">
<tbody>
<tr>
<th class="style1 style6" scope="row"><a class="style18" title="Yorumlar" href="#yorumlar"><strong>#</strong></a> Ziyaretçi görüşleri;<hr class="style2" />
</th>
</tr>
</tbody>
</table>
'; echo '</th>
</tr>
<tr>
<th scope="row"> </th>
</tr>
</tbody>
</table>
'; echo'
<table align="left">
<tbody>
<tr align="left">
<td align="left">'; echo '<a name="yorumlar">'; include ("DateBase"); echo '</a></td>
</tr>
</tbody>
</table>
'; #################################### # # # nt-reklam # # Ziyaret-Çİ Defteri Tasarım Kodlama By Nt-reklam # # www.nt-reklam.tr.gg # # # #################################### ?>
<p> </p>
</th>
</tr>
<tr>
<th scope="row"><span class="style16"><a class="style16" title="Üst" href="#ust"><strong>#</strong></a> Tasarım kodlama by</span><span class="style18"> <a class="style18" title="Tasarım kodlama by nt-reklam" alt="komik" href="http://www.nt-reklam.tr.gg">Nt-Reklam</a></span></th>
</tr>
</tbody>
</table>
<!--
####################################
# #
# nt-reklam #
# Ziyaret-Çİ Defteri Tasarım Kodlama By Nt-reklam #
# www.nt-reklam.tr.gg. #
# #
####################################
####################################
# #
# Nt-reklam #
# Ziyaret-Çİ Defteri Tasarım Kodlama By Serkan GÜL #
# www.nt-reklam.tr.gg #
# #
####################################
<meta content="text/html; charset=iso-8859-9" http-equiv="Content-Type" />
<meta content="Ziyaretçi Defteri" name="keywords" />
<meta content="Ziyaretçi Defteri" name="description" />
<meta content="tr" http-equiv="Content-Language" /><style type="text/css">
<!--
color: #0099FF;
font-size: 16x;
}
.style1 {color: #99CC00}
.style2 {color: #0099FF}
.style3 {color: #FF0000}
body {
background-color: #F8F8F8;
}
.style5 {
color: #99CC00;
font-size: large;
font-weight: bold;
}
.style16 {color: #0099FF; font-size: 14px; }
.style18 {color: #99CC00; font-size: 14px; font-weight: bold; }
-->
<!--
####################################
# #
# Nt-reklam #
# Ziyaret-Çİ Defteri Tasarım Kodlama By Serkan GÜL #
# www.nt-reklam.tr.gg #
# #
####################################
.style19 {color: #666666}
a:hover {
color: #000033;
}
a:active {
color: #000033;
}
.style20 {
color: #333333;
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style22 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #0066CC;
}
.style23 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #0066CC;
}
<table width="600" align="center" border="0">
<tbody>
<tr>
<th scope="row" bgcolor="#ffffff">
<table width="600" border="0">
<tbody>
<tr>
<th scope="row"><br />
<span class="style5"># # # # # Z i y a r e t ç i D e f t e r i # # # # # </span><hr class="style2" />
</th>
</tr>
</tbody>
</table>
<br />
<table width="600" align="center" border="0">
<tbody>
<tr>
<th scope="row">
<form action="ziyaretci_defteri.php" method="post">
<fieldset>
<div align="left"><span class="style2">Adınız:</span> <input class="style1" name="adi" type="text" /></div>
<p align="left"><span class="style2">Görüşleriniz: </span><br />
<textarea class="style1" rows="4" cols="50" name="mesaj"></textarea></p>
<p align="left"><input class="style2" type="submit" name="Gonder" value="Gönder" /> <input class="style2" type="reset" name="Sil" value=" Sil " /></p>
</fieldset>
</form>
</th>
</tr>
</tbody>
</table>
<table width="600" border="0">
<tbody>
<tr>
<th scope="row" align="left">
<table width="638" align="left" border="0">
<tbody>
<tr>
<th scope="col" align="left"><!--
$_GET ["git"];
if ($_GET["git"]=="yorumlar"){
include 'DateBase';
}
--></th>
</tr>
</tbody>
</table>
<p> </p>
<table width="341" align="left" border="0">
<tbody>
<tr>
<th scope="col" width="335">
<div align="left"><span class="style22"><a class="style22" href="ziyaretci_defteri.php">Ziyaretçi Defteri</a></span><span class="style20"> <strong>|</strong> </span><span class="style22"><a class="style23" href="?git=yorumlar">Yorumları Göster</a></span> <span class="style20"><strong>|</strong></span> <a class="style23" href="http://www.nt-reklam.tr.gg">Nt-reklam </a></div>
</th>
</tr>
</tbody>
</table>
<p><br />
<br />
<span class="style3"><!--
####################################
# #
# Nt-reklam #
# Ziyaret-Çİ Defteri Tasarım Kodlama By Serkan GÜL #
# www.nt-reklam.tr.gg. #
# #
####################################
$adi = $_POST ['adi'];
$mesaj =$_POST['mesaj'];
if ($_POST[Gonder] == "" ){
echo "
<tr >
<td class='style14'><strong class='style14'><font color='red'><a class='style14' href='ziyaretci_defteri.php' _fcksavedurl='ziyaretci_defteri.php'><font color='red'><b>#</b></font></a> Deftere yazarken boş alan bırakmayın</strong></font>
</tr>
</td>
";
echo (exit );
}
if ($_POST[adi] == "" ){
echo "<strong class='style14'>Adınızı Girmediniz...</strong>";
echo (exit ); }
elseif ($_POST[mesaj] == "") {
echo "<strong class='style3'>Görüşünüzü bildirmediniz...</strong>";
echo (exit );}
$dosya = DateBase;
touch ($dosya);
print ("");
$dosya_adi = $dosya;
$dosya = fopen ($dosya_adi , 'a') or die ("Dosya açılamadı!");
$metin = "<strong class='style1'>Adı: </strong>" .strip_tags($_POST[adi]) ."<-->"; fwrite ( $dosya , $metin ) ; </span></p>
<center>Nt-Reklam.tr.gg </center>; fclose ($dosya); echo '
<table width="600" border="0">
<tbody>
<tr>
<th class="style1 style6" scope="row"><a class="style18" title="Yorumlar" href="#yorumlar"><strong>#</strong></a> Ziyaretçi görüşleri;<hr class="style2" />
</th>
</tr>
</tbody>
</table>
'; echo '</th>
</tr>
<tr>
<th scope="row"> </th>
</tr>
</tbody>
</table>
'; echo'
<table align="left">
<tbody>
<tr align="left">
<td align="left">'; echo '<a name="yorumlar">'; include ("DateBase"); echo '</a></td>
</tr>
</tbody>
</table>
'; #################################### # # # nt-reklam # # Ziyaret-Çİ Defteri Tasarım Kodlama By Nt-reklam # # www.nt-reklam.tr.gg # # # #################################### ?>
<p> </p>
</th>
</tr>
<tr>
<th scope="row"><span class="style16"><a class="style16" title="Üst" href="#ust"><strong>#</strong></a> Tasarım kodlama by</span><span class="style18"> <a class="style18" title="Tasarım kodlama by nt-reklam" alt="komik" href="http://www.nt-reklam.tr.gg">Nt-Reklam</a></span></th>
</tr>
</tbody>
</table>
<!--
####################################
# #
# nt-reklam #
# Ziyaret-Çİ Defteri Tasarım Kodlama By Nt-reklam #
# www.nt-reklam.tr.gg. #
# #
####################################