PHP Üyelik Sistemi Sorunu
13
●1.049
- 21-06-2009, 09:21:54Üyeliği durdurulduBenim anlamadıgım 3 tane post ile çekecegin yeriyi neden böyle yapmayı düşünüyorsun ?
- 21-06-2009, 09:51:43
<?php ob_start(); session_start(); include "config.php"; function giris() { echo " <body> <form action=\"index.php?sayfa=hesapyarat\" method=\"post\"> <div align=\"center\"> <p class=\"style1\">ÜYELİK FORMU </p> <table width=\"328\" border=\"1\"> <tr> <th width=\"139\" scope=\"row\">K.ADI:</th> <td width=\"173\"><input type=\"text\" name=\"nick\" /> </td> </tr> <tr> <th scope=\"row\">ŞİFRE:</th> <td><input type=\"password\" name=\"pw\" /> </td> </tr> <tr> <th scope=\"row\"> </th> <td><input type=\"Submit\" value=\"KAYDET\" /> </td> </tr> </table> <p><strong><em>ZCDesign İnternet Hizmetleri </em></strong></p> </div> </form> </body> "; } function hesapac() { $nick = $_POST['nick']; $pass = md5($_POST['pw']); $tarih = date ("d/m/y"); } if (($nick == "") or ($pass == "")) { header("location:index.php?sayfa=login&error=1"); } else { $add = mysql_query("insert into register(nick,pw,tarih) values ('$nick','$pass','$tarih') "); if(! $add) { print "Üye ekleme başarısız !";} else {header("location:index.php");} } ?>bir de böyle dene. - 22-06-2009, 01:23:22Üyeliği durdurulduKodun son hali aşağıdaki gibi oldu. Ama yine "Parse error: syntax error, unexpected $end in /home/wwwhizm/public_html/aha.php on line 55" hatası veriyor...
<HTML> <HEAD> <TITLE>AAALA</TITLE> </HEAD> <BODY> <? session_start(); ob_start(); include "config.php"; function giris() { ?> <body> <form action=\"index.php?sayfa=hesapyarat\" method=\"post\"> <div align=\"center\"> <p class=\"style1\">ÜYELİK FORMU </p> <table width=\"328\" border=\"1\"> <tr> <th width=\"139\" scope=\"row\">K.ADI:</th> <td width=\"173\"><input type=\"text\" name=\"nick\" /> </td> </tr> <tr> <th scope=\"row\">ŞİFRE:</th> <td><input type=\"password\" name=\"pw\" /> </td> </tr> <tr> <th scope=\"row\"> </th> <td><input type=\"submit\" value=\"KAYDET\" /></td> </tr> </table> <p><strong><em>ZCDesign İnternet Hizmetleri </em></strong></p> </div> </form> </body> <? } function hesapac(){ $nick = $_POST["nick"]; $pass = md5($_POST["pw"]); $tarih = date ("d/m/y"); } if (($nick == "") or ($pass == "")) { header("location:index.php?sayfa=login&error=1"); } else { $add = mysql_query("insert into register(nick,pw,tarih) values ('$nick','$pass','$tarih') "); if(! $add) { print "Üye ekleme başarısız !"; } else { header("location:index.php"); } ?> </BODY> </HTML>