php üyelik sistemi hata

Php, Asp, Perl, Html - php üyelik sistemi hata Sponsorlu Bağlantılar merhaba arkadaşlar php uye kayıtı yaparken Parse error: syntax error, unexpected $end in C:\wamp\www\PHP_Uyelik_Sistemi_V2.2\PHP_Uyelik_Sis temi_V2.2\yeni_uyelik.php on line 270 hatasını verdi çözüm bulamadım biraz yeniyim kod aşağıda şimdiden teşekkürler ...

Cevapla
php üyelik sistemi hata
erkol007 isimli Üye şimdilik offline konumundadır

erkol007

Öğrenci (Diğer) / Amasya

Standart

php üyelik sistemi hata

Alt 15-01-2009 #1
Sponsorlu Bağlantılar

merhaba arkadaşlar php uye kayıtı yaparken
Parse error: syntax error, unexpected $end in C:\wamp\www\PHP_Uyelik_Sistemi_V2.2\PHP_Uyelik_Sis temi_V2.2\yeni_uyelik.php on line 270 hatasını verdi çözüm bulamadım biraz yeniyim kod aşağıda şimdiden teşekkürler yardımlarınızı bekliyorum kod aşağıda
<?php
function yeniuyelik(){ //yeniuyelik function başla
?>
<form method="POST" enctype="multipart/form-data" action="yeni_uyelik.php?git=uyekayit">
<div align="center">
<table border="1" id="table1" cellspacing="0" cellpadding="0" bordercolordark="#C4EC02" style="border-collapse: collapse">
<tr>
<td><div align="center">
<table border="0" width="250" id="table2" cellpadding="0" style="border-collapse: collapse">
<tr>
<td height="20" background="imgeler/yesil_cubuk.gif" colspan="4"><b>
<font size="1" face="Tahoma">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Yeni Üye Kaydı</font></b></td>
</tr>
<tr>
<td height="20" colspan="4">&nbsp;</td>
</tr>
<tr>
<td height="20" width="4">&nbsp;</td>
<td height="20" width="105" align="right">
<font size="1" face="Tahoma">Adınız ve Soyadınız</font></td>
<td height="20" width="6">&nbsp;</td>
<td height="20" width="135">
<input type="text" name="adsoyad" style="font-size: 8pt; font-family: Tahoma; color: #000000; border: 1px dotted #CCCCCC; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #C4EC02" size="20"><font size="1" face="Tahoma">
<font color="#808080">&nbsp;*</font></font></td>
</tr>
<tr>
<td height="20" width="4">&nbsp;</td>
<td height="20" width="105" align="right">
<font size="1" face="Tahoma">Kullanıcı Adınız</font></td>
<td height="20" width="6">&nbsp;</td>
<td height="20" width="135"><input type="text" name="kullaniciadi" style="font-size: 8pt; font-family: Tahoma; color: #000000; border: 1px dotted #CCCCCC; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #C4EC02" size="20"><font size="1" face="Tahoma">
<font color="#808080">&nbsp;*</font></font></td>
</tr>
<tr>
<td height="20" width="4">&nbsp;</td>
<td height="20" width="105" align="right">
<font size="1" face="Tahoma">Parolanız</font></td>
<td height="20" width="6">&nbsp;</td>
<td height="20" width="135">
<input type="text" name="parola" style="font-size: 8pt; font-family: Tahoma; color: #000000; border: 1px dotted #CCCCCC; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #C4EC02" size="20"><font size="1" face="Tahoma">
<font color="#808080">&nbsp;*</font></font></td>
</tr>
<tr>
<td height="20" width="4">&nbsp;</td>
<td height="20" width="105" align="right">
<font size="1" face="Tahoma">Parola Tekrarlayınız</font></td>
<td height="20" width="6">&nbsp;</td>
<td height="20" width="135">
<input type="text" name="sifre" style="font-size: 8pt; font-family: Tahoma; color: #000000; border: 1px dotted #CCCCCC; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #C4EC02" size="20"><font size="1" face="Tahoma">
<font color="#808080">&nbsp;*</font></font></td>
</tr>
<tr>
<td height="20" width="4">&nbsp;</td>
<td height="20" width="105" align="right">
<font size="1" face="Tahoma">E-Mail Adresiniz</font></td>
<td height="20" width="6">&nbsp;</td>
<td height="20" width="135">
<input type="text" name="email" style="font-size: 8pt; font-family: Tahoma; color: #000000; border: 1px dotted #CCCCCC; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #C4EC02" size="20"><font size="1" face="Tahoma">&nbsp;
<font color="#808080">*</font></font></td>
</tr>
<tr>
<td height="20" width="4">&nbsp;</td>
<td height="20" width="105" align="right">
<font size="1" face="Tahoma">Şehir Seçiniz</font></td>
<td height="20" width="6">&nbsp;</td>
<td height="20" width="135">
<select name="sehir" size="1" style="border:1px dotted #C0C0C0; font-family: Tahoma; background-color:#C4EC00; font-size:8pt; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px; color:#000000">
<OPTION value="Belirtmemiş" selected>Şehir Seç</OPTION>

<OPTION value="Adana">Adana</OPTION>
<OPTION value="Adıyaman">Adıyaman</OPTION>
<OPTION value="Afyon">Afyon</OPTION>
<OPTION value="Ağrı">Ağrı</OPTION>
<OPTION value="Aksaray">Aksaray</OPTION>
<OPTION value="Amasya">Amasya</OPTION>
<OPTION value="Ankara">Ankara</OPTION>
<OPTION value="Antalya">Antalya</OPTION>
<OPTION value="Ardahan">Ardahan</OPTION>
<OPTION value="Artvin">Artvin</OPTION>
<OPTION value="Aydın">Aydın</OPTION>
<OPTION value="Balıkesir">Balıkesir</OPTION>
<OPTION value="Bartın">Bartın</OPTION>
<OPTION value="Batman">Batman</OPTION>
<OPTION value="Bayrut">Bayrut</OPTION>
<OPTION value="Bilecik">Bilecik</OPTION>
<OPTION value="Bingöl">Bingöl</OPTION>
<OPTION value="Bitlis">Bitlis</OPTION>
<OPTION value="Bolu">Bolu</OPTION>
<OPTION value="Burdur">Burdur</OPTION>
<OPTION value="Bursa">Bursa</OPTION>
<OPTION value="Çanakkale">Çanakkale</OPTION>
<OPTION value="Çankırı">Çankırı</OPTION>
<OPTION value="Çorum">Çorum</OPTION>
<OPTION value="Denizli">Denizli</OPTION>
<OPTION value="DiyarBekir">DiyarBekir</OPTION>
<OPTION value="Düzce">Düzce</OPTION>
<OPTION value="Edirne">Edirne</OPTION>
<OPTION value="Elazığ">Elazığ</OPTION>
<OPTION value="Erzincan">Erzincan</OPTION>
<OPTION value="Erzurum">Erzurum</OPTION>
<OPTION value="Eskişehir">Eskişehir</OPTION>
<OPTION value="Gaziantep">Gaziantep</OPTION>
<OPTION value="Giresun">Giresun</OPTION>
<OPTION value="Gümüşhane">Gümüşhane</OPTION>
<OPTION value="Hakkari">Hakkari</OPTION>
<OPTION value="Hatay" >Hatay</OPTION>
<OPTION value="Iğdır">Iğdır</OPTION>
<OPTION value="Isparta">Isparta</OPTION>
<OPTION value="İçel">İçel</OPTION>
<OPTION value="İstanbul">İstanbul</OPTION>
<OPTION value="İzmir">İzmir</OPTION>
<OPTION value="Kahramanmaraş">Kahramanmaraş</OPTION>
<OPTION value="Karabük">Karabük</OPTION>
<OPTION value="Karaman">Karaman</OPTION>
<OPTION value="Kars">Kars</OPTION>
<OPTION value="Kastamonu">Kastamonu</OPTION>
<OPTION value="Kayseri">Kayseri</OPTION>
<OPTION value="Kıbrıs">Kıbrıs</OPTION>
<OPTION value="Kırıkkale">Kırıkkale</OPTION>
<OPTION value="Kırklareli">Kırklareli</OPTION>
<OPTION value="Kırşehir">Kırşehir</OPTION>
<OPTION value="Kilis">Kilis</OPTION>
<OPTION value="Kocaeli">Kocaeli</OPTION>
<OPTION value="Konya">Konya</OPTION>
<OPTION value="Kütahya">Kütahya</OPTION>
<OPTION value="Malatya">Malatya</OPTION>
<OPTION value="Manisa">Manisa</OPTION>
<OPTION value="Mardin">Mardin</OPTION>
<OPTION value="Muğla">Muğla</OPTION>
<OPTION value="Muş">Muş</OPTION>
<OPTION value="Nevşehir">Nevşehir</OPTION>
<OPTION value="Niğde">Niğde</OPTION>
<OPTION value="Ordu">Ordu</OPTION>
<OPTION value="Osmaniye">Osmaniye</OPTION>
<OPTION value="Rize">Rize</OPTION>
<OPTION value="Sakarya">Sakarya</OPTION>
<OPTION value="Samsun">Samsun</OPTION>
<OPTION value="Siirt">Siirt</OPTION>
<OPTION value="Sinop">Sinop</OPTION>
<OPTION value="Sivas">Sivas</OPTION>
<OPTION value="ŞanlıUrfa">ŞanlıUrfa</OPTION>
<OPTION value="Şırnak">Şırnak</OPTION>
<OPTION value="Tekirdağ">Tekirdağ</OPTION>
<OPTION value="Tokat">Tokat</OPTION>
<OPTION value="Trabzon">Trabzon</OPTION>
<OPTION value="Tunceli">Tunceli</OPTION>
<OPTION value="Uşak">Uşak</OPTION>
<OPTION value="Van">Van</OPTION>
<OPTION value="Yalova">Yalova</OPTION>
<OPTION value="Yozgat">Yozgat</OPTION>
<OPTION value="Zonguldak">Zonguldak</OPTION>
<OPTION value="Diğer">Diğer</OPTION>
<OPTION value="Ülke Dışı">Türkiye Dışı</OPTION>
<OPTION>-----------------------</OPTION>
</select><font size="1" face="Tahoma">
<font color="#808080">&nbsp;*</font></font></td>
</tr>
<tr>
<td height="20" width="4">&nbsp;</td>
<td height="20" width="105" align="right">
<font size="1" face="Tahoma">Avatar Yüleyiniz</font></td>
<td height="20" width="6">&nbsp;</td>
<td height="20" width="135">
<input type="file" name="resim1" size="7" style="font-size: 8pt; color: #000000; font-family: Tahoma; border: 1px dotted #CCCCCC; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #C4EC02"></td>
</tr>
<tr>
<td height="20" width="4">&nbsp;</td>
<td height="20" width="105">&nbsp;</td>
<td height="20" width="6">&nbsp;</td>
<td height="20" width="135">&nbsp;</td>
</tr>
<tr>
<td height="20" width="4">&nbsp;</td>
<td height="20" width="105">&nbsp;</td>
<td height="20" width="6">&nbsp;</td>
<td height="20" width="135">
<input type="submit" value="Tamam" name="verigonder" style="font-size: 8pt; font-family: Tahoma; color: #000000; border: 1px dotted #C0C0C0; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #C6EE01"></td>
</tr>
<tr>
<td height="20" colspan="4">
<p align="right">&nbsp;</td>
</tr>
<tr>
<td height="20" colspan="4">
<p align="center"><font size="1" face="Tahoma"><a href="index.php">
<span style="text-decoration: none"><font color="#000000">Ana Sayfa</font></span></a></font></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</form>
<? }
#-------------------------------------------------------------------

include ("db_baglan.php");
function uyekayit(){ //uyekayit function başla

$adsoyad = $_POST['adsoyad'];
$kullaniciadi = $_POST['kullaniciadi'];
$parola = $_POST['parola'];
$sifre = $_POST['sifre'];
$email = $_POST['email'];
$sehir = $_POST['sehir'];
$onay = 1;
$tarih = date("d.m.Y");

if($adsoyad=="" || $kullaniciadi=="" || $parola=="" || $sifre=="" || $email=="" || $sehir==""){
echo "<p align='center'><img border='0' src='imgeler/close.gif' width='25' height='25'></p><p align='center'><b><font size='1' face='Tahoma' color='#FF0000'>Yıldızlı Alanları Boş Bırakamazsınız!</font></b></p><p align='center'><img border='0' src='imgeler/okey.gif' width='21' height='15'><br><b><font size='1' face='Tahoma'><a href='javascript:history.back(1)'><B>Geri Dön</B></a></font></b></p>";
}
elseif($parola!=$sifre){
echo "<p align='center'><img border='0' src='imgeler/close.gif' width='25' height='25'></p><p align='center'><b><font size='1' face='Tahoma' color='#FF0000'>Parolalarınız Birbirini Tutmuyor!</font></b></p><p align='center'><img border='0' src='imgeler/okey.gif' width='21' height='15'><br><b><font size='1' face='Tahoma'><a href='javascript:history.back(1)'><B>Geri Dön</B></a></font></b></p>";
}

elseif (!eregi ("^([a-z0-9_]|\-|\.)[email protected](([a-z0-9_]|\-)+\.)+[a-z]{2,4}$", $email)) {
echo "<p align='center'><img border='0' src='imgeler/close.gif' width='25' height='25'></p><p align='center'><b><font size='1' face='Tahoma' color='#FF0000'>Lütfen Geçerli Bir E-Mail Adresini Yazınız ([email protected])!</font></b></p><p align='center'><img border='0' src='imgeler/okey.gif' width='21' height='15'><br><b><font size='1' face='Tahoma'><a href='javascript:history.back(1)'><B>Geri Dön</B></a></font></b></p>";
}

elseif ((! $kullaniciadi=="") || (! $email=="")){ //kontrol elseif başla
$bak = "select * from uyeler where kulladi='$kullaniciadi' || email='$email'";
$kontrol = mysql_query($bak);
$kayitsayisi = mysql_num_rows($kontrol);

if ($kayitsayisi > 0) {
echo "<p align='center'><img border='0' src='imgeler/close.gif' width='25' height='25'></p><p align='center'><b><font size='1' face='Tahoma' color='#FF0000'>Yazdığınız Kullanıcıadı veya E-Mail Adresi Kullanılıyor!</font></b></p><p align='center'><img border='0' src='imgeler/okey.gif' width='21' height='15'><br><b><font size='1' face='Tahoma'><a href='javascript:history.back(1)'><B>Geri Dön</B></a></font></b></p>";
}
else{ //else başla

$parolamd = md5($parola);

$posted = "resim1";
if ($_FILES["resim1"]['name']){
$filename=$_FILES["$posted"]['name'];
$efilename = explode('.', $filename);
$uzanti = $efilename[count($efilename) - 1];
$uzantilar=array('jpg','png','gif');
$isim=rand(0,99999999);
$yeniad = "".$isim.".".$uzanti."";
$hedef1 = "uye_avatarlar/".$yeniad;
move_uploaded_file($_FILES["$posted"]['tmp_name'],"uye_avatarlar/".$yeniad);
}

$uyekayit = mysql_query("INSERT INTO uyeler (kulladi,parola,sifre,email,sehir,adsoyad,tarih,re sim,onay) values ('$kullaniciadi','$parolamd','$sifre','$email','$s ehir','$adsoyad','$tarih','$hedef1','$onay')");

if ($uyekayit){
echo "<p align='center'><b><font size='1' face='Tahoma' color='#FF0000'>Teşekkürler! Üye Kaydınız Yapıldı!</font></b></p><p align='center'><b><font size='1' face='Tahoma'>Girişi Yapmak İçin <font color='#FF0000'><a href='index.php'><font color='#FF0000'>BURAYA</font></a></font> Tıklayınız!</font></b></p>";
}else{
echo "<p align='center'><img border='0' src='imgeler/close.gif' width='25' height='25'></p><p align='center'><b><font size='1' face='Tahoma' color='#FF0000'>Üzgünüm Üye Kaydınız Yapılamadı!</font></b></p><p align='center'><img border='0' src='imgeler/okey.gif' width='21' height='15'><br><b><font size='1' face='Tahoma'><a href='javascript:history.back(1)'><B>Geri Dön</B></a></font></b></p>";
}

}//else bitir

}//kontrol elseif bitir

} //uyekayit function kapat

#-------------------------------------------------------------------
switch ($_GET['git']){
default:
yeniuyelik();
break;
case "uyekayit":
uyekayit();
break;
}
?>
Bu mesajdan alıntı yap
Sponsor Links

Grafikerler.net Reklamları

Cevapla

Tags
hata, php, sistemi, uyelik

Benzer Konular
Konu Konu Bilgileri Forum Cevaplar Son Mesaj
Php + Flash Üyelik Sistemi JeoleX Flash 11 03-04-2011 15:41:21
Özel Üyelik Sistemi Admin Özel Üyelik Sistemi 0 04-07-2008 09:07:56
Özel Üyelik Sistemi Admin Forum Duyuruları 0 04-07-2008 09:02:20

Kapat
Şifremi Unuttum?