• 21-06-2009, 09:21:54
    #10
    Üyeliği durduruldu
    Benim anlamadıgım 3 tane post ile çekecegin yeriyi neden böyle yapmayı düşünüyorsun ?
  • 21-06-2009, 09:51:43
    #11
    <?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\" />&nbsp;</td>
        </tr>
          <tr>
            <th scope=\"row\">ŞİFRE:</th>
            <td><input type=\"password\" name=\"pw\" />&nbsp;</td>
        </tr>
          <tr>
            <th scope=\"row\">&nbsp;</th>
          <td><input type=\"Submit\" value=\"KAYDET\" />&nbsp;</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
    #12
    Üyeliği durduruldu
    Kodun 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\" />&nbsp;</td>
        </tr>
          <tr>
            <th scope=\"row\">ŞİFRE:</th>
            <td><input type=\"password\" name=\"pw\" />&nbsp;</td>
        </tr>
          <tr>
            <th scope=\"row\">&nbsp;</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>
  • 22-06-2009, 07:42:28
    #13
    } //ekleyeceksin.
    ------
    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");
    }
    } // en son

    -------
  • 22-06-2009, 07:57:46
    #14
    eğer local hostta çalıştırmak istiyorsan scripti en baştaki <? yerine <?php yapıcaksın gördüğüm kadarı ile en sonda 1 adet } eksik