• 08-04-2008, 13:09:01
    #10
    not düştüğün için sağol .. sorunuma derman bulamadım arkadaşlar
  • 08-04-2008, 13:26:20
    #11
    Üyeliği durduruldu
    Bir kere ne aciplik ise include ettiğin dosyada html kodlarının bulunması çok sayıda html hatasına yol açar. 2 dosyadada <html> ile başlatmışsın. index.php içinde bir kez ana taglar belirtilir bu durumda.

    <?php include ("solmenu.php"); ?> olarak kullandığında ilk önce içini doldurmadan solmenu.php içinde asdfaieaiea gibi bişiler yaz sonra include et. Biraz saçma olabilir ama basit ve net bir testtir.
  • 08-04-2008, 13:33:56
    #12
    Bence kodlama düzenini değiştir sen echo'ları neden koyuyorsun anlam veremedim?
    Neysa ben olsam echo'ları koymam koysam bile o şekilde yapmam
    örnek:
    <?
    echo "
    ?>
    html kodları fln......
    <?
    ";
    ?>
  • 08-04-2008, 13:37:52
    #13
    Arkadaşlar iyi diyorsunuzda ilk defa php den site yaptıgım ıcın başına echo koyarak html nın tırnakları ile karışmasını onluyor \" ve yazdırıyorum..
    şuanda ne yapmam gerektiğini anlamış değilim malesef
    dosyayı çağırıyor ama doğru yere çağırmıyor.. malesef dediklerinizden birşey çıkartamadım
  • 08-04-2008, 13:47:14
    #14
    Ben şu şekilde yapardım.
    ana sayfan
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm...nsitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" type="text/css" href="sek.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
            background-color: #CF956B;
    }
    #Layer1 {
            position:absolute;
            width:581px;
            height:36px;
            z-index:1;
            left: 184px;
            top: 58px;
    }
    #Layer2 {
            position:absolute;
            width:150px;
            height:250px;
            z-index:2;
            top: 111px;
            left: 15px;
    }
    #Layer3 {
            position:absolute;
            width:85px;
            height:19px;
            z-index:2;
            left: 26px;
            top: 118px;
    }
    #Layer4 {
            position:absolute;
            width:142px;
            height:217px;
            z-index:2;
            left: 15px;
            top: 109px;
    }
    #Layer5 {
            position:absolute;
            width:143px;
            height:90px;
            z-index:3;
            left: 14px;
            top: 330px;
    }
    #Layer6 {
            position:absolute;
            width:150px;
            height:48px;
            z-index:4;
            left: -288px;
            top: 37px;
    }
    #Layer7 {
            position:absolute;
            width:40px;
            height:23px;
            z-index:4;
            left: 59px;
            top: 396px;
    }
    #Layer8 {
            position:absolute;
            width:108px;
            height:74px;
            z-index:5;
            left: 809px;
            top: 114px;
    }
    #Layer9 {
            position:absolute;
            width:94px;
            height:115px;
            z-index:6;
            left: 811px;
            top: 194px;
    }
    #Layer10 {
            position:absolute;
            width:41px;
            height:21px;
            z-index:7;
            left: 835px;
            top: 334px;
    }
    -->
    </style></head>
    <body>
    <div id="Layer1">
    <ul>
    <li><a href="#">Anasayfa</a></li>
    <li><a href="#">Sinifimiz</a></li>
    <li><a href="#">Derslerimiz</a></li>
    <li><a href="#">Ogretmenlerimiz</a></li>
    <li><a href="#">Z.Defteri</a></li>
    </ul>
    </div>";
    <? 
    include("solmenu.php");
    ?>
    echo " <div id="Layer8">
             <div class="menu_doldur">Hangi Web  Dili? </div>
              <div class="menup"><input type="radio" name="php" />PHP <br>
                                                   <input type="radio" name="asp" />ASP
          </div>
    </div>
        <div id="Layer9">
            <div class="menu_doldur">Hangi Yazilim  Dili? </div>
              <div class="menup"><input type="radio" name="vb.net" />VB.NET <br>
                                                   <input type="radio" name="c++" />C++ <br>
                                                      <input type="radio" name="pascal" />Pascal <br>
                                                       <input type="radio" name="delphi" />Delphi <br>
    </div>        </div>
        <div id="Layer10">
          <form id="form2" name="form2" method="post" action="">
            <label>
            <input type="submit" name="Submit2" value="Oyla" />
            </label>
                </form>
    </div>
    </body>
    </html>
    sol taraftaki kısım

    <style type="text/css">
    <!--
    #Layer1 {
     position:absolute;
     width:165px;
     height:115px;
     z-index:1;
     left: 11px;
     top: 98px;
    }
    #Layer2 {
     position:absolute;
     width:39px;
     height:23px;
     z-index:2;
     left: 70px;
     top: 378px;
    }
    #Layer3 {
     position:absolute;
     width:149px;
     height:98px;
     z-index:3;
     left: 20px;
     top: 312px;
    }
    
    -->
    </style>
    </head>
    <body>
        <div id="Layer1">
          <div class="menu_doldur"> D&ouml;k&uuml;manlar </div>
       <div class="menup"><a href="#" class="link">Php D&ouml;k&uuml;manları</a> </div>
       <div class="menup"><a href="#" class="link">Asp D&ouml;k&uuml;manları</a> </div>
       <div class="menup"><a href="#" class="link">VB.NET D&ouml;k&uuml;manları</a> </div>
       <div class="menup"><a href="#" class="link">Access D&ouml;k&uuml;manları</a> </div>
       <div class="menup"><a href="#" class="link">Flash D&ouml;k&uuml;manları</a> </div>
       <div class="menup"><a href="#" class="link">Fireworks D&ouml;k&uuml;manları</a> </div>
       <div class="menup"><a href="#" class="link">Photoshop D&ouml;k&uuml;manları</a> </div>
    </div>
        <div id="Layer2">
    <input type="submit" name="Submit" value="Ara" /></div>
        <div id="Layer3">
          <div class="menu_doldur"> Arama </div>
        <form id="form1" name="form1" method="post" action="">
       <input name="aramatext" type="text" />
       </form>
    </div>

    bu şekilde vede style'leri uygun bir biçimde yine düzenlerdim.çunku karışıklık olabilir.
  • 08-04-2008, 14:34:01
    #15
    Üyeliği durduruldu
    adamın kafasını karıştırmayın,
    kardeş açıkça ifade etmek gerekirse include dosyasının içinde <html><head>vs... bu tarz kodlar olursa, senin yaptığın iş şu hesaba döner..
    örneklendirecek olursak ;


    <html>
    <head>
    <title>deneme</title>
    </head>
    <body>
    çekilen sayfanın kodları =>>>
    <html>
    <head>
    <title>deneme</title>
    </head>
    <body>
    </body>
    </html>
    çekilen sayfanın kodları <<<=

    <head>
    <title>deneme</title>
    </head>
    <body>
    </body>
    </html>


    yani buna benzer absürd bir durum ortaya çıkar demek istedi arkadaşlar sana.
  • 08-04-2008, 20:25:31
    #16
    çok sağolun arkadaşlar localphp açıklayınca anladım ne anlama geldiğini.. yardım edenlerde cok sağolsun bir sorunum var ustmenu.php yi sağa almama rağmen ana.php de include ediyorum sol aşağıda cıkıyor..
    ustmenu.php
    <link rel="stylesheet" type="text/css" href="sek.css">
     
    <style type="text/css">
    <!--
    #Layer1 {
    position:absolute;
    width:611px;
    height:38px;
    z-index:1;
    left: 300px;
    top: 45px;
    }
    body {
    background-color: #CF956B;
    }
    -->
    </style>
    </head>
     
    <body>
    <div id="Layer1">
    <ul>
    <li><a href="#">Anasayfa</a></li>
    <li><a href="#">Sinifimiz</a></li>
    <li><a href="#">Derslerimiz</a></li>
    <li><a href="#">Ogretmenlerimiz</a></li>
    <li><a href="#">Z.Defteri</a></li>
    </ul>
    </div>
    /// sağ menuyude include ile alayım dedim bir aldım ustmenu cok sağa kaydı sol menu saga kaydı .. yani bozuluyor include ile menuleri çekince bir yol yordamı yoıkmudur bu işin?