y_kullanici.php

<html>
<!-- Bu sistem Teknoder.Com tarafından geliştirilmektedir. -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
</head>
<style type="text/css">
body {
	margin:0;
}
</style>
<body>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="872" height="1060">
	<!-- MSTableType="layout" -->
	<tr>
		<td valign="top" colspan="4" background="images/ust_back.PNG">
		<!-- MSCellType="ContentHead" -->
		&nbsp;</td>
		<td></td>
		<td></td>
		<td height="19"></td>
		</tr>
	<tr>
		<td colspan="3">
		<!-- MSCellType="ContentHead" -->
		<img border="0" src="images/logotakip.png"></td>
		<td valign="top">
		<p align="right">
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; </td>
		<td></td>
		<td></td>
		<td height="59"></td>
		</tr>
	<tr>
		<td valign="top" colspan="6">
		<!-- MSCellType="NavBody" -->
		<table border="1" width="100%" id="table7" style="border-width: 0px" cellspacing="0" cellpadding="0">
	<tr>
		<td style="border-style: none; border-width: medium" height="121">
		<p align="center">
		<img border="0" src="images/4content.PNG" width="858" height="112"></td>
	</tr>
	<tr>
		<td style="border-style: none; border-width: medium">
		<p>
		&nbsp;<img border="0" src="images/center_line.PNG" width="854" height="13"></td>
	</tr>
		</table>
		</td>
		<td height="137"></td>
		</tr>
	<tr>
		<td valign="top">
		<!-- MSCellType="NavBody" -->
		<p align="center">
<img border="0" src="images/musteri_paneli.PNG" width="226" height="38"> 
		<table border="1" width="100%" id="table33" style="border-width: 0px">
			<tr>
				<td style="border-style: none; border-width: medium">&nbsp;</td>
				<td style="border-style: none; border-width: medium">
				<table border="1" width="100%" id="table34" style="border-width: 0px">
					<tr>
						<td style="border-style: none; border-width: medium" width="4%" align="right">&nbsp;</td>
						<td style="border-style: none; border-width: medium" width="11%" align="right">
						<font color="#FF8909" face="Verdana" size="2">
						<img border="0" src="images/ok1.gif" width="9" height="9"></font></td>
						<td style="border-style: none; border-width: medium" width="80%">
						<font face="Verdana" size="2" color="#FF8909">&nbsp;<a href="login.php" style="text-decoration: none"><font color="#FF9900">Giriş</font></a></font></td>
					</tr>
					<tr>
						<td style="border-style: none; border-width: medium" align="right" colspan="3">
						<p align="center">
						<font color="#FF8909" face="Verdana" size="2">
						<img border="0" src="images/subkamp_ayrac_yan.PNG" width="189" height="3"></font></td>
					</tr>
					<tr>
						<td style="border-style: none; border-width: medium" width="4%" align="right">&nbsp;</td>
						<td style="border-style: none; border-width: medium" width="11%" align="right">
						<font color="#FF8909" face="Verdana" size="2">
						<img border="0" src="images/ok1.gif" width="9" height="9"></font></td>
						<td style="border-style: none; border-width: medium" width="80%">
						&nbsp;<font face="Verdana" color="#AD1456" size="2"><a href="y_kullanici.php" style="text-decoration: none"><font color="#AD1456">Kayıt 
						Ol</font></a></font></td>
					</tr>
					<tr>
						<td style="border-style: none; border-width: medium" width="95%" align="right" colspan="3">
						<p align="center">
						<font color="#FF8909" face="Verdana" size="2">
						<img border="0" src="images/subkamp_ayrac_yan.PNG" width="189" height="3"></font></td>
					</tr>
					<tr>
						<td style="border-style: none; border-width: medium" width="4%" align="right">&nbsp;</td>
						<td style="border-style: none; border-width: medium" width="11%" align="right">
						<font color="#FF8909" face="Verdana" size="2">
						<img border="0" src="images/ok1.gif" width="9" height="9"></font></td>
						<td style="border-style: none; border-width: medium" width="80%">
						<font face="Verdana" color="#FF8909" size="2">
						&nbsp;</font><a style="text-decoration: none" href="unuttum.php"><font face="Verdana" size="2" color="#0093E0">Şifremi 
						Unuttum</font></a></td>
					</tr>
					<tr>
						<td style="border-style: none; border-width: medium" width="95%" align="right" colspan="3">
						<p align="center">
						<font color="#FF8909" face="Verdana" size="2">
						<img border="0" src="images/subkamp_ayrac_yan.PNG" width="189" height="3"></font></td>
					</tr>
					</table>
				</td>
				<td style="border-style: none; border-width: medium">&nbsp;</td>
			</tr>
		</table>
		</td>
		<td valign="top" background="images/ayrac_nokta.PNG" rowspan="2">
		<!-- MSCellType="NavBody" -->
		&nbsp;</td>
		<td valign="top" colspan="3" rowspan="2">
		<!-- MSCellType="ContentBody" -->
		
		





<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>Yeni Müşteri Kaydı</title>
<style>
    body,td {
          font-family:arial; 
          font-size:12px; 
         }
</style>
</head>

<body>
<center>

<table border="1" width="100%" id="table35" height="64" style="border-width: 0px">
	<tr>
		<td style="border-style: none; border-width: medium" width="4">&nbsp;</td>
		<td style="border-style: none; border-width: medium" width="600">
		<span style="font-size: 2pt"><b>&nbsp;</b></span><b><font style="font-size: 11pt" color="#333333">Dikkat</font><font style="font-size: 10pt"><br>
		</font>
		<font style="font-size: 2pt">&nbsp;</font><font style="font-size: 5pt"> </font><font size="2" color="#333333"><br>
		</font></b><font face="Verdana" color="#333333" size="2"> 
				&nbsp;</font><font face="Tahoma" style="font-size: 8pt" color="#333333">•</font><font face="Verdana" color="#333333" size="2"> 
				</font>
				<font face="Arial" color="#333333" style="font-size: 9pt"> 
				Türkçe karakter kullanmayınız. (ı,ş,ü,ö,ğ)</font><font face="Verdana" color="#333333" size="2"><br>
				&nbsp;</font><font face="Tahoma" style="font-size: 8pt" color="#333333">•</font><font face="Verdana" color="#333333" size="2"> 
				</font>
				<font face="Arial" color="#333333" style="font-size: 9pt"> 
				Tüm alanlar zorunludur. Bilgileri eksik veya yanlış olan 
		müşterilerin işlemleri <b>
				gerçekleştirilmemektedir.</b><br>
&nbsp;</font></td>
		<td style="border-style: none; border-width: medium">&nbsp;</td>
	</tr>
</table>

<table width=592 border=0 cellpadding=10 cellspacing=0>
      <tr bgcolor=#d0d0d0><td colspan=2><b>&nbsp;&nbsp;&nbsp; Müşteri Kayıt 
		Formu</td></tr>

<form action="kayit_tamamla.php" method="post">

    <tr bgcolor=#f0f0f0>
            <td bgcolor="#FFFFFF">&nbsp;&nbsp; E-Posta</td>    
			<td width="403" bgcolor="#FFFFFF"><input type="text"      name="kadi" id="kullaniciadi" size="20"></td>   </tr>
    <tr >
          <td bgcolor="#F0F0F0">&nbsp;&nbsp; E-Posta (tekrar)</td>        
			<td width="403" bgcolor="#F0F0F0"><input type="text"      name="posta" id="posta" size="20"></td>             </tr>
    <tr >
          <td>&nbsp;&nbsp; Şifre</td>        <td width="403"><input type="password"  name="sifre" id="sifre" size="20"></td>             </tr>
    <tr >
      <td width=149 bgcolor="#F0F0F0">&nbsp;&nbsp; Ad Soyad</td>               
		<td width="403" bgcolor="#F0F0F0"><input type="text"      name="ad" id="ad" size="20"></td>                       </tr>
    <tr bgcolor=#f0f0f0>
      <td width=149 bgcolor="#FFFFFF">&nbsp;&nbsp; T.C. Kimlik No</td>        <td width="403" bgcolor="#FFFFFF"><input type="text"      name="tc" id="tc" size="20"></td>                        </tr>
    
    <tr bgcolor=#f0f0f0>
      <td width=149>&nbsp;&nbsp; Telefon
                   </td>        <td width="403"><input type="text"      name="tel" id="tel" size="20"></td>                        </tr>

    <tr>
				<td>&nbsp;&nbsp; Müşteri Tipi:</td><td width="403">	        <input name="mustip" id="mustip"  type="radio" value=k /> <label for="mustip">
				Kurumsal</label>   
                                <input name="mustip" id="mustip2" type="radio" value=b /> <label for="mustip2">
				Bireysel</label>
        </td>
			</tr>     
    <tr bgcolor=#f0f0f0>
      <td width=149>&nbsp;&nbsp; Şehir
      </td>         <td width="403">        <input type="text"     name="sehir"  size="20"></td>    </tr>
    <tr>
     <td width=149>&nbsp;&nbsp; İlçe
     </td>                      <td width="403"><input type="text" name="ilce" size="20"></td>    </tr>
    <tr  bgcolor=#f0f0f0>
            <td width=149>
            &nbsp;&nbsp; Adres</td>          <td width="403"><textarea type="text" name="adres" rows="3" cols=40> </textarea></td>    </tr>
    <tr>
      <td width=149>&nbsp;&nbsp;&nbsp;Hakkımda</td>       <td width="403"><textarea type="text" name="hakkimda"  rows="3" cols=40> </textarea></td>    </tr>
    
    <!--<tr>
      <td width=149 bgcolor="#F0F0F0">&nbsp;&nbsp; Doğrulama kodu</td>       
		<td width="403" bgcolor="#F0F0F0">  
                                      <input type="text" name="guv" size="10" maxlength=6 >&nbsp;&nbsp; <br><img style=margin-top:5px; src=captcha.php /> </td>    </tr>-->
    

    <tr>
                                <td>&nbsp;&nbsp; <input type="submit" value="Gönder" name="B1"></td>    </tr>
</table></form>
</center>
</body>

</html> 

</td>
		<td></td>
		<td height="145"></td>
		</tr>
	<tr>
		<td>&nbsp;</td>
		<td></td>
		<td height="602"></td>
		</tr>
	<tr>
		<td valign="top" colspan="6">
		<!-- MSCellType="ContentFoot" -->
		<p align="center"><br>
<img border="0" src="images/center_line.PNG" width="857" height="13"><table border="1" width="100%" id="table39" style="border-width: 0px">
			<tr>
				<td style="border-style: none; border-width: medium" width="351">
				<table border="1" width="105%" id="table40" style="border-width: 0px">
					<tr>
						<td style="border-style: none; border-width: medium" width="54">
				<p align="left">
						<img border="0" src="images/logotakip.png"></td>
						<td style="border-style: none; border-width: medium">
						</td>
					</tr>
				</table>
				</td>
				<td style="border-style: none; border-width: medium">
				<table border="1" width="100%" id="table41" style="border-width: 0px">
					<tr>
						<td style="border-style: none; border-width: medium">
						<p align="right">
						<b><font face="Tahoma" size="2" color="#666666">
						<a target="_blank" style="text-decoration: none" href="http://www.s-destek.com">
						<font color="#666666">Server Destek Müşteri Takip Paneli</font></a></font></b><font face="Tahoma" color="#666666" style="font-size: 10pt"><br>
						.<br>
©&nbsp;2010 Her Hakkı Saklıdır.</font></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
		<td height="98"></td>
		</tr>
	<tr>
		<td width="237"></td>
		<td width="4"></td>
		<td width="34"></td>
		<td width="586"></td>
		<td width="4"></td>
		<td width="6"></td>
		<td height="1" width="1"></td>
	</tr>
</table>
</center>
</body>

</html>
kayit_tamamla.php

<?php

  include("config.php");
   session_start("h");
  $OturumBilgi=session_id("h");
  
  // $imagekod=substr($OturumBilgi,0,6);
  extract($_POST);
  

  if(empty($ad)){
      echo("<center><b>Adınızı Yazmadınız. Lütfen Geri Dönüp Doldurunuz.</b></center>");
  }elseif(empty($kadi)){
      echo("<center><b>E-Posta Adresinizi Yazmadınız. Lütfen Geri Dönüp Doldurunuz.</b></center>");
  }elseif(empty($sifre)){
      echo("<center><b>Şifrenizi Yazmadınız. Lütfen Geri Dönüp Doldurunuz.</b></center>");
  }elseif(empty($tc)){
      echo("<center><b>TC Kimlik Numaranızı Yazmadınız. Lütfen Geri Dönüp Doldurunuz.</b></center>");
  }elseif(empty($tel)){
      echo("<center><b>Telefon Numaranızı Yazmadınız. Lütfen Geri Dönüp Doldurunuz.</b></center>");
  }else
  // if($guv<>$imagekod){
      // echo("<center><b>Doğrulama kodunu yanlış girdiniz.</b></center>");
  // }else
  {
  
      $sorgu = mysql_query("SELECT * FROM musteri WHERE kullaniciadi='$kullaniciadi' AND email='$posta'");
      $kontrol = mysql_num_rows($sorgu);
  
      if($kontrol == 1) {
          echo "Böyle bir kullanıcı adı veya e-mail adresi sistemde mevcut..<br>";
      }
      else {
          $sql = "INSERT INTO musteri SET id            =null,
                                          kullaniciadi  ='$kadi', 
                                          ad            ='$ad', 
                                          sifre         ='$sifre', 
                                          email 	      ='$posta',
                                          tel           ='$tel', 
                                          hakkimda 	    ='$hakkimda',
                                          sehir 	      ='$sehir',
                                          ilce 	        ='$ilce',
                                          tc 	          ='$tc',
                                          adres 	      ='$adres',
                                          mustip        ='$mustip',
                                          oturum        =''
                 ";
          //id 	ad 	kullaniciadi 	sifre 	email 	tel 	hakkimda 	sehir 	ilce 	tc 	adres 	mustip 	oturum       
          $kayit = mysql_query($sql);
      }
  
      if (isset ($kayit)){
      
        echo "<center><font face=arial><br><br><br><br><b>Üye Kaydınız Yapılmıştır Yönlendiriliyorsunuz...";
        echo "<meta http-equiv=refresh content=3;URL=login.php>";
      }
      else {
        echo "Kayıt işlemi başarısız.";
      }
  }
	error_reporting(0); 

?>