• 16-07-2010, 19:29:37
    #1
    Üyeliği durduruldu
    Amacım index.phpde arama sorgusu yapılınca bunu ara.phpye aktarıp 3 saniye içinde " http://www.google.com.tr/#hl=tr&source=hp&q=$sorgu " linkine yönlendirmesi ama ara.php boş sayfa olarak çıkıyor

    kodlar şöyle:

    index.php
    <html> <body>
    <form action="ara.php" method="post" name="cse-search-box" id="cse-search-box">
      <div>
        
    	<p align="center"><img src="http://www.google.com.tr/intl/en_com/images/srpr/logo1w.png" width="275" height="95" /></p>
    	<div align="center"></div>
      </div>
      
      <label>
      <div align="center">
        <input name="sorgu" type="text" id="sorgu" size="50" />
        <br />
        <br />
        <input name="ara" type="submit" id="ara" value="Google'da Ara" />
      </div>
      </label>
    </form>
    <div align="center">
      <!--- KAYNAK: http://www.kodcunuz.com --->
      <br />
      <br />
      <br />
      <a href="http://belliolmaz.com" onclick="this.style.behavior='url(#default#homepage)';   this.setHomePage('http://belliolmaz');">Giriş Sayfası Yap</a><br />
      <br />
      <br />
      <!--- KAYNAK: http://www.kodcunuz.com --->
      <div align="center"><a href="http://google.com/intl/tr/ads/">Reklam Programlarımız</a> - <a href="http://google.com/services/">İşletme &Ccedil;&ouml;z&uuml;mleri</a> - <a href="http://google.com/intl/tr/about.html">Google Hakkında</a> - <a href="http://www.google.com/support/jobs/bin/static.py?page=intl.html&amp;jobslc=turkey" onmousedown="return   rwt(this,'promos','hppwebjob:tr_tr','pro','1','AFQjCNESWuYvK-CTp5ct60Hroo_1RznZgg','&amp;sig2=gcGVCX_ghZhh28dUjbIp5g')"> Kariyer Başvuruları</a> - <a href="http://www.google.com/ncr">Google.com   in English</a> </div>
      <p align="center">&copy;2008 - <a href="http://www.google.com.tr/intl/tr/privacy.html">Gizlilik</a></p>
    </div>
    </body> </html>
    ara.php
    <?php
    $sorgu=$_POST[sorgu]; /* “sorgu” adındaki form elemanındaki bilgiyi isim değişkenine
    aktarıyor. */
    echo “Arama: $sorgu </br>”; /* sorgu değişkeni ekrana yazdırılıyor */
    ?>
    
    <b>deneme</b>
    
    <? 
    echo 3 Saniye icinde <b>$sorgu</b> aramasina yonlendirileceksiniz.
    echo <meta http-equiv="refresh" content='3;URL=http://www.google.com.tr/#hl=tr&source=hp&q=$sorgu'>
    ?>
    sorun büyük ihtimalle ara.php de. sorunu söyleyebilecek var mı ?
  • 16-07-2010, 19:36:38
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    <?php
    $sorgu=$_POST['sorgu']; 
    
    echo '3 Saniye icinde <b>'.$sorgu.'</b> aramasina yonlendirileceksiniz.';
    echo '<meta http-equiv="refresh" content=\'3;URL=http://www.google.com.tr/#hl=tr&source=hp&q='.$sorgu.'\'>';
    ?>
    Böyle yaptıgımda çalışıyor.
  • 16-07-2010, 19:38:35
    #3
    Üyeliği durduruldu
    Çok teşekkür ederim +rep
  • 16-07-2010, 19:41:34
    #4
    Rica ederim Tşk. rep için : )
  • 16-07-2010, 19:45:06
    #5
    Üyeliği durduruldu
    Ben birde 3 saniyenin geriye doğru sayılmasını istiyorum

       <?php
    $sorgu=$_POST['sorgu']; 
    
    echo '<center><script type="text/javascript">
    var newCount;
    function timer(position,count)
    {
    if (position == 'start') {
    document.getElementById("timer").innerHTML=count
    newCount = count - 1
    setTimeout("timer('go',newCount)",1000)
    }
    
    if (position == 'go') {
    document.getElementById("timer").innerHTML=count
    newCount--;
    setTimeout("timer('go',newCount)",1000)
    }
    }
    </script>
    <body onload="timer('start',3);">
    <div id="timer" />
     Saniye icinde <b>'.$sorgu.'</b> aramasina yonlendirileceksiniz.</center>';
    echo '<meta http-equiv="refresh" content=\'3;URL=http://www.google.com.tr/#hl=tr&source=hp&q='.$sorgu.'\'>';
    ?>
    Şöyle yaptım olmadı, biryerlerin önüne / felan koyuyorduk ama unuttum.
  • 16-07-2010, 19:52:21
    #6
      <?php
    $sorgu=$_POST['sorgu']; 
    
    echo '<center>
    <script type="text/javascript">
    var newCount;
    function timer(position,count)
    {
    if (position == \'start\') {
    document.getElementById("timer").innerHTML=count
    newCount = count - 1
    setTimeout("timer(\'go\',newCount)",1000)
    }
    
    if (position == \'go\') {
    document.getElementById("timer").innerHTML=count
    newCount--;
    setTimeout("timer(\'go\',newCount)",1000)
    }
    }
    </script>';
    echo '<body onload="timer(\'start\',3);">
    <div id="timer" />
     Saniye icinde <b>'.$sorgu.'</b> aramasina yonlendirileceksiniz.</center>';
    echo '<meta http-equiv="refresh" content=\'3;URL=http://www.google.com.tr/#hl=tr&source=hp&q='.$sorgu.'\'>';
    ?>
    Oda bu şekilde çalışıyor.
  • 16-07-2010, 19:53:44
    #7
    Üyeliği durduruldu
    " Saniye icinde .. aramasina yonlendirileceksiniz. " yazmıyor bu sefer de. sadece geri sayıyor.
  • 16-07-2010, 19:54:28
    #8
    Sağolasın İşin görülsün yeter
  • 16-07-2010, 19:56:27
    #9
    Üyeliği durduruldu
    " Saniye icinde .. aramasina yonlendirileceksiniz. " yazmıyor bu sefer de. sadece geri sayıyor.