Merhabalar,
Aynı sayfa üstünde kullanıcı açmaya çalışıyorum fakat kayıt yapmıyor. Hatam nedir?
if(isset($_POST['Kaydet']));
$kadi=$_POST["adi"];
$ksoyadi=$_POST["soyadi"];
$kemail=$_POST["email"];
$kusername=$_POST["username"];
$kpass=$_POST["pass"];
$ktel=$_POST["tel"];
$_FILES["resim"]["size"]<1024*1024;
$_FILES["resim"]["type"]=="image/jpeg";
$dosya_adi=$_FILES["resim"]["name"];
$uret=array('as','rt','ty','yu','fg');
$uzanti=substr($dosya_adi,-4,4);
$sayi_tut=rand(1,10000);
$yeni_ad='../images/'.$uret[rand(0,4)].$sayi_tut.$uzanti;
move_uploaded_file($_FILES["resim"]["tmp_name"],$yeni_ad);
$ekle=mysql_query("Insert Into users(username,pass,email,tel,adi,soyadi,resim) values ('$kusername','kpass','$kemail','$ktel','$kadi','$ksoyadi','$yeni_ad')" );
if($ekle){
echo "veri girişi yapılmıştır.";
} <form action="" method="post" enctype="multipart/form-data">
<table width="480">
<tbody>
<tr>
<th width="79" height="30" scope="row">Adı</th>
<td width="293" height="30"><input name="adi" type="text" id="adi" size="50"></td>
<td width="86" height="30"> </td>
</tr>
<tr>
<th height="30" scope="row">Soyadı</th>
<td height="30"><input name="soyadi" type="text" id="soyadi" size="50"></td>
<td height="30"> </td>
</tr>
<tr>
<th height="30" scope="row">Email</th>
<td height="30"><input name="email" type="email" id="email" size="50"></td>
<td height="30"> </td>
</tr>
<tr>
<th height="30" scope="row">Tel</th>
<td height="30"><input name="tel" type="tel" id="tel" size="50"></td>
<td height="30"> </td>
</tr>
<tr>
<th height="30" scope="row">Kullanıcı Adı</th>
<td height="30"><input name="username" type="text" id="username" size="50"></td>
<td height="30"> </td>
</tr>
<tr>
<th height="30" scope="row">Şifre</th>
<td height="30"><input name="pass" type="password" id="pass" size="50"></td>
<td height="30"> </td>
</tr>
<tr>
<th height="30" scope="row">Resim</th>
<td height="30"><input name="resim" type="file" id="resim" size="50"></td>
</tr>
<tr>
<th height="30" scope="row"> </th>
<td height="30"> </td>
<td height="30"><input type="submit" name="Kaydet" id="Kaydet" value="Kaydet"></td>
</tr>
</tbody>
</table>
</form>