<?php
	$adi_soyadi=$_POST['adi_soyadi'];
	$email=$_POST['email'];
	$sifre=md5($_POST['sifre']);
	$rsifre=md5($_POST['rsifre']);
	$telefon=$_POST['telefon'];
	$sehir=$_POST['sehir'];
	$ulke=$_POST['ulke'];
	if($sifre==$rsifre){
	if($_POST["ekle"]){
				mysql_query("insert into uyeler values (NULL,'".$email."','".$sifre."','".$adi_soyadi."','".$telefon."','".$sehir."','".$ulke."','0')")or die(mysql_error());
	//$sid = mysql_insert_id();  
				echo "Kaydiniz Yapildi";
				
	}
	}else{
		echo "Girdiginiz Sifreler birbiriyle Uyusmuyor.Tekrar Deneyiniz.";	
	}
	
?>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
 <div class="center_title_bar">&Uuml;ye Ol</div>
     <div class="prod_box_big">
      
            <div class="center_prod_box_big">            
                 <form action="sayfa.php?sayfa=uyeol" method="post">
              	<div class="contact_form">
                      <div class="form_row">
                    <label class="contact"><strong>Ad&#305; Soyad&#305;:</strong></label>
                    <input type="text" class="contact_input"  name="adi_soyadi"/>
                    </div>       
                  <div class="form_row">
                    <label class="contact"><strong>E-Mail:</strong></label>
                    <input type="text" class="contact_input"  name="email"/>
                    </div>  

                    <div class="form_row">
                    <label class="contact"><strong>Sifre:</strong></label>
                    <input type="password" class="contact_input" name="sifre"/>
                    </div>
   <div class="form_row">
                    <label class="contact"><strong>Sifre Tekrar:</strong></label>
        <input type="password" class="contact_input"  name="rsifre"/>
                  </div>

                  <div class="form_row">
                    <label class="contact"><strong>Telefon:</strong>&nbsp;+</label>
                    
                    <input type="text" class="contact_input" name="telefon"/>
                    </div>
                     <div class="form_row">
                    <label class="contact"><strong>Sehir:</strong></label>
                    
                    <input type="text" class="contact_input" name="sehir"/>
                    </div>
                  <div class="form_row">
                    <label class="contact"><strong>Ülke:</strong></label>
                    <input type="text" class="contact_input" name="ulke" />
                    </div>


                    <div class="form_row"></div>

                    
                    <div class="form_row">
                     <input type="submit" name="kaydet" value="Kaydet">
                    </div>      
                    
                </div> 
                
                     <input type="hidden" name="ekle" value="ekle">
				</form>                
            </div>
                                 
        </div>