Jump to content
Son zamanlarda artan kullanıcı hesap hırsızlıkları sebebiyle tüm kullanıcılara şifre sıfırlama maili gönderilmiştir. Lütfen güveli şifreler seçiniz. Mevcut e-mail adresinize erişemiyorsanız, en aşağıdaki destek linkinden bize ulaşınız. ×

Php Session Oluşturduktan Sonra Sayfa Yönlendirme


Recommended Posts

Merhaba arkadaşlar index.php sayfasında Session oluşturup, sayfa2.php'de listelettiriyorum. Ama ben session'ı oluşturduktan sonra otomatik olarak sayfa2.php'ye yönlendirme yapmasını istiyorum, nasıl yapabileceğim konusunda bana yardımcı olabilirseniz çok sevinirim. Teşekkürler.

index.php

<?php
session_start();
?>
 
<!doctype html>
<html>
    <head>
    <title>Session Oluştur</title>
    </head>
    <body>
        <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
            Ürün Adı :<input type="text" name="urunadi">
            Alış Fiyati :<input type="text" name="alisfiyati">
             Müşteri Adı :<input type="text" name="musteriadi">
            <input type="submit" name="submit" value="Submit">
        </form>
 
        <br>
        <a href="sayfa2.php">2.Sayfaya Git </a><br>
        <a href="sayfa3.php">3.Sayfaya Git </a>
 
        <?php
 
        if ($_SERVER["REQUEST_METHOD"] == "POST") {
 
        $_SESSION['uadi']=$_POST['urunadi'];
 
        $_SESSION['afiyati']=$_POST['alisfiyati'];
		
		$_SESSION['madi']=$_POST['musteriadi'];
 
        }
        ?>
    </body>
</html>


sayfa2.php
 

<?php
session_start();
?>
 
<!doctype html>
<html>
    <head>
    <title>Session Listeleme</title>
    </head>
    <body>
 
       <?php if(isset($_SESSION["uadi"])&&isset($_SESSION["afiyati"])&&isset($_SESSION["madi"]))
            {
       ?>
 
        Ürün Adı : <?php echo $_SESSION['uadi']; ?><br>
        Alış Fiyatı : <?php echo $_SESSION['afiyati']; ?><br>
        Müşteri Adı : <?php echo $_SESSION['madi']; }?><br>
 
        <a href="index.php">1.Sayfaya Git </a>
 
    </body>
</html>

 

Link to comment
Share on other sites

prototype, 3 saat önce yazdı:

Merhaba arkadaşlar index.php sayfasında Session oluşturup, sayfa2.php'de listelettiriyorum. Ama ben session'ı oluşturduktan sonra otomatik olarak sayfa2.php'ye yönlendirme yapmasını istiyorum, nasıl yapabileceğim konusunda bana yardımcı olabilirseniz çok sevinirim. Teşekkürler.

index.php


<?php
session_start();
?>
 
<!doctype html>
<html>
    <head>
    <title>Session Oluştur</title>
    </head>
    <body>
        <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
            Ürün Adı :<input type="text" name="urunadi">
            Alış Fiyati :<input type="text" name="alisfiyati">
             Müşteri Adı :<input type="text" name="musteriadi">
            <input type="submit" name="submit" value="Submit">
        </form>
 
        <br>
        <a href="sayfa2.php">2.Sayfaya Git </a><br>
        <a href="sayfa3.php">3.Sayfaya Git </a>
 
        <?php
 
        if ($_SERVER["REQUEST_METHOD"] == "POST") {
 
        $_SESSION['uadi']=$_POST['urunadi'];
 
        $_SESSION['afiyati']=$_POST['alisfiyati'];
		
		$_SESSION['madi']=$_POST['musteriadi'];
 
        }
        ?>
    </body>
</html>


sayfa2.php
 


<?php
session_start();
?>
 
<!doctype html>
<html>
    <head>
    <title>Session Listeleme</title>
    </head>
    <body>
 
       <?php if(isset($_SESSION["uadi"])&&isset($_SESSION["afiyati"])&&isset($_SESSION["madi"]))
            {
       ?>
 
        Ürün Adı : <?php echo $_SESSION['uadi']; ?><br>
        Alış Fiyatı : <?php echo $_SESSION['afiyati']; ?><br>
        Müşteri Adı : <?php echo $_SESSION['madi']; }?><br>
 
        <a href="index.php">1.Sayfaya Git </a>
 
    </body>
</html>

 

Kullanman gereken komut header fonksiyonudur...komut aşağıdaki linkten anlatılmış durumda

Please register to see this content.

<?php header("Refresh: 2; url=sayfa2.php"); ?>

<?php header("Location: sayfa2.php"); ?>

Edited by crasadure
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Similar Content

    • By KemalALKIN
      Yedekler bulunup yüklendi.
      https://drive.google.com/drive/folders/1OytvsnZzQK8mJYJhfwS7reJVOpBEMabj?usp=sharing
      kealos win xp pro sp2 x64 2021 sata güncel otomatik reklamsız türkçe v2
      kullanılan taban türk_eros ustamızın çalışması üzerinden gidilerek hazırlanmıştır.
      v2 ile root sertifika ile firefox esr gibi temel şeyler ekendi.
      indir:
      https://disk.yandex.com.tr/d/twZMrRJYM5o4Og

      kurulum otomatikleştirildi admin olarak gelir
      reklamlar kısmen kaldırıldı
      dil büyük oranda türkçe
      bazı ayarlar gözden geçirildi
      [Tweaks] Açılış ve Kapanış-Durum Mesajları-Standart Açılış ve Kapanış-Hoşgeldin ekranında Administrator hesabını görüntüle Açılış ve Kapanış-Oturum Sayfası-Hoşgeldin ekranı Açılış ve Kapanış-Sistem hatalarında yeniden başlatmayı devre dışı bırak Açılış ve Kapanış-Sistem hatalarını kaydetme Ağ-TCP/IP Önceliğini 1 olarak ayarla Ağ-Uzak Bağlantı isteklerine izin ver-Devredışı Ağ-Uzak Masaüstü-Devredışı Başlat Menüsü-Denetim Masası-Menü olarak göster Başlat Menüsü-Pencere gecikmesini azalt Bilgisayarım-Ağ Bağlantıları'nı ekle Bilgisayarım-Denetim Masasını Ekle Bilgisayarım-Geri Dönüşüm Kutusu'nu ekle Bilgisayarım-Sağ Tuş Menüsüne Kayıt Defteri kısayolunu ekle Bilgisayarım-Sağ Tuş Menüye Aygıt Yöneticisi'ni ekle Bilgisayarım-Sağ Tuş menüye Denetim Masasını ekle Bilgisayarım-Sağ Tuş Menüye Program Ekle/Kaldır ekle Bilgisayarım-Sağ Tuş Menüye Servisler'i ekle Bilgisayarım-Yazıcılar ve Fakslar'ı ekle Gezgin-Bilinen dosya-türleri uzantılarını göster Gezgin-Hatalarda Bip sesini kaldır Gezgin-Korumalı işletim sistemi dosyalarını göster Gezgin-Otomatik Çalıştırma Devredışı Gezgin-Windows Gezgini klasör görünümünü değiştir-Simge Gezgin-Yapışkan Tuşlar devredışı (Erişebilirlik) Gizlilik-Alexa Casus Yazılımını Sil Gizlilik-Bilgisayar kapatılırken takas dosyasını temizle Gizlilik-Hata Raporu devredışı Gizlilik-Internet üzerinden sürücü güncelleme Devredışı Gizlilik-MRU-Liste Dosyası devredışı Gizlilik-Sık kullanılan programları izleme devredışı Görev Çubuğu-Görev çubuğunu kilitle-Evet Görsel Etkiler-Combo box animasyonu-Aktif Görsel Etkiler-Dikdörtgen seçimlerde yarı saydamlık-Aktif Görsel Etkiler-Ekran yazıtiplerini yumuşat-ClearType Görsel Etkiler-Görev çubuğu simgelerinde slayt-Aktif Görsel Etkiler-Kursör gölgesi-Aktif Görsel Etkiler-Liste kutularını yumuşat-Aktif Görsel Etkiler-Masaüstündeki simge etiketleri için gölgelendirme kullan-Aktif Görsel Etkiler-Menu gölgesi-Aktif Görsel Etkiler-Menu stili-Normal Görsel Etkiler-Pencere taşınırken içeriği göster-Aktif Görsel Etkiler-Pencereler küçültüldüğünde ve büyütüldüğünde animasyon oynat-Aktif Görsel Etkiler-Pencerelerde eğimli etiket-Devredışı Güvenlik-Antivirus hatırlatması devredışı Güvenlik-DCOM Devredışı Güvenlik-Ekran koruyucuyu kapat Güvenlik-Ekrankoruyucu Şifre-Korumalı-Devredışı Güvenlik-Güvenlik duvarı hatırlatması devredışı Internet Explorer-Ana sayfayı ayarla-www.google.com Internet Explorer-Google URL-Araması Aktif Internet Explorer-IE-Önbellek limiti-200 MB Internet Explorer-Internet Explorer eşzamanlı 10 bağlantı kurması Masaüstü-Ağ Bağlantıları simgesi-Göster Masaüstü-Belgelerim simgesi-Göster Masaüstü-Bilgisayarım simgesi-Göster Masaüstü-Geri Dönüşüm Kutusu simgesi-Göster Masaüstü-Internet Explorer simgesi-Göster Performans-AVI Ortam Dosyalarına Erişimi Hızlandır
       
    • By artae
      Blumentals Rapid PHP 2022 v17.2.0.242 Multilingual | 116.7 Mb

      Rapid PHP editor is a faster and more powerful PHP code editor for Windows combining features of a fully-packed PHP IDE with the speed of the Notepad.

      Rapid PHP is the most complete all-in-one software for coding PHP, HTML, CSS, javascript and other web development languages with tools for debugging, validating, reusing, navigating and formatting your code.
      The fastest PHP editor / IDE
      Loads much faster than any other PHP editor or PHP IDE with similar features
      Powerful syntax highlighting
      Supports HTML, CSS, javascript, PHP, Smarty, XML, SQL, Apache and more
      Code intelligence
      Tons of intelligent code completion, navigation and suggestion features for PHP, HTML, CSS, javascript, Smarty
      Powerful editor
      Unicode support, bracket-matching, code folding, auto-complete, auto-replace, multi-highlight and more
      HTML5 and CSS3 ready
      Coding features are up-to-date with modern standards
      Powerful CSS features
      Inspector, compatibility watch, prefixizer, code assistants, browser preview and much more
      Advanced search and replace
      Goto anything, quick search, detailed search, file search, regular expressions, detailed results and more
      Smarty & framework support
      Powerful support for Smarty PHP template ee and popular PHP frameworks
      Debugger & validators
      xDebug PHP debugger, real PHP checker, spelling checker, W3 HTML and CSS validator, JSLint javascript checker
      Direct FTP/SFTP/FTPS
      Edit directly on your web server or publish local development copy updates with a single click
      Efficient code re-use
      Code snippet library and code templates with assignable shortcuts
      Loads of tools
      Code beautifier, dynamic ToDo, color picker, XRay etc.
      Windows 7, 8, 10, 11
      -
      DOWNLOAD
      (Buy premium account for maximum speed and resuming ability)


      https://nitroflare.com/view/E09DDFFDA3F427E/5qyio.Blumentals.Rapid.PHP.2022.v17.2.0.242.Multilingual.rar



      https://rapidgator.net/file/256f2a2509d9805b93e30092b928665b/5qyio.Blumentals.Rapid.PHP.2022.v17.2.0.242.Multilingual.rar


    • By artae
      Blumentals Rapid PHP 2022 v17.0.0.240. Multilingual | 112.3 Mb
      Rapid PHP editor is a faster and more powerful PHP code editor for Windows combining features of a fully-packed PHP IDE with the speed of the Notepad. Rapid PHP is the most complete all-in-one software for coding PHP, HTML, CSS, javascript and other web development languages with tools for debugging, validating, reusing, navigating and formatting your code.

      The fastest PHP editor / IDE
      Loads much faster than any other PHP editor or PHP IDE with similar features
      Powerful syntax highlighting
      Supports HTML, CSS, javascript, PHP, Smarty, XML, SQL, Apache and more
      Code intelligence
      Tons of intelligent code completion, navigation and suggestion features for PHP, HTML, CSS, javascript, Smarty
      Powerful editor
      Unicode support, bracket-matching, code folding, auto-complete, auto-replace, multi-highlight and more
      HTML5 and CSS3 ready
      Coding features are up-to-date with modern standards
      Powerful CSS features
      Inspector, compatibility watch, prefixizer, code assistants, browser preview and much more
      Advanced search and replace
      Goto anything, quick search, detailed search, file search, regular expressions, detailed results and more
      Smarty & framework support
      Powerful support for Smarty PHP template engine and popular PHP frameworks
      Debugger & validators
      xDebug PHP debugger, realtime PHP checker, spelling checker, W3 HTML and CSS validator, JSLint javascript checker
      Direct FTP/SFTP/FTPS
      Edit directly on your web server or publish local development copy updates with a single click
      Efficient code re-use
      Code snippet library and code templates with assignable shortcuts
      Loads of tools
      Code beautifier, dynamic ToDo, color picker, XRay etc.
      Operating System:Windows 7, 8, 10
      Home Page -https://www.rapidphpeditor.com/
      DOWNLOAD
      (Buy premium account for maximum speed and resuming ability)


      https://nitroflare.com/view/B8818BDF4105D08/kz6qv.Blumentals.Rapid.PHP.2022.v17.0.0.240.Multilingual.rar



      https://rapidgator.net/file/3d9484b81940155cfd8646bc0f8a1a08/kz6qv.Blumentals.Rapid.PHP.2022.v17.0.0.240.Multilingual.rar


    • By artae
      Native Instruments - Session Guitarist Picked Nylon KONTAKT | 5.96 Gb

      PICKED NYLON captures a one-of-a-kind, nylon-stringed guitar, in an intuitively playable production tool.

      The instrument's clean and mellow timbres are perfect for a range of genres, from classical to electronica, as well as distinctive styles like bossa nova and flamenco. Whether you're producing film scores or pop tracks, the powerful effects and performance controls give you everything you need for your perfect sound.
      DEDICATED TO AUTHENTICITY
      The sounds of PICKED NYLON were recorded with an instrument built by master guitar-maker Lisa Weinzierl, using rare preamps and a carefully controlled studio environment to capture the perfect tone. Six highly sought-after microphones were used to create three separate stereo setups, for a range of sound options that deliver everything from warm and organic to clean and modern.
      TART CREATING GUITAR PARTS, FAST
      PICKED NYLON comes with an expansive library of strummed chords, picked arpeggios, and delicate riffs, all performed with a range of playing styles by a top-class session player. The instrument's broad range of song presets can be browsed by genre, for quick and easy access to the style you want. You can also record in your own parts using any MIDI controller, and then add in details like slides, fret noise, and harmonics to bring your compositions to life.
      SCULPT YOUR OWN CUSTOM SOUND
      With in-built sympathetic resonance, mod-wheel-controlled vibrato, algorithmic fret noises, and even the sound of a real guitarist breathing, PICKED NYLON utilises cutting-edge sampling technology to achieve a stunning level of realism. The instrument also comes with state-of-the-art delay, chorus, flanger, and phaser effects, as well as studio-grade EQ, compressor, and reverb tools, so you can fine-tune sounds to sit perfectly in your mix.
      WHEN ARTISTRY MEETS INTUITION
      To create the exceptional instrument behind the rich, clear tones of PICKED NYLON, visionary guitar maker Lisa Weinzierl used carefully chosen materials including maple and spruce, with centuries-old techniques inspired by traditional Cremonese luthiers such as Stradivarius. In this video you can learn about the philosophy behind Lisa's approach to instrument creation, and take an in-depth look at the process that makes her guitars sound so special.
      PICK IT WITH KOMPLETE KONTROL
      Pair PICKED NYLON with a KOMPLETE KONTROL keyboard for a fun, easy, and efficient way to access everything the instrument has to offer. With KOMPLETE KONTROL hardware, you can quickly browse patterns, tweak and preview sounds, and get at-a-glance info on key ranges and articulations with the Light Guide.
      DOWNLOAD
      (Buy premium account for maximum speed and resuming ability)


      https://nitroflare.com/view/68329E53F18EF98/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part1.rar
      https://nitroflare.com/view/8A1BF37F91C8DB9/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part2.rar
      https://nitroflare.com/view/0EA171F7DD688FF/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part3.rar
      https://nitroflare.com/view/A5E16ABFEB92D74/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part4.rar
      https://nitroflare.com/view/721E0F05D15C36D/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part5.rar
      https://nitroflare.com/view/B6EB19D93A701D7/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part6.rar



      https://rapidgator.net/file/a6501c70f4773df8c68c97ac2ac5e34d/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part1.rar
      https://rapidgator.net/file/f9410fa6b5242106ec127c58a5ddc03c/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part2.rar
      https://rapidgator.net/file/24d96d4cfe3866932b667d0688cd9497/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part3.rar
      https://rapidgator.net/file/f6df917d0bf11d15e94e022304dba187/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part4.rar
      https://rapidgator.net/file/12b69913af3c962317788bcdc91c1e57/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part5.rar
      https://rapidgator.net/file/575c34e8479e792add589db0d97776d3/8mcjy.Native.Instruments..Session.Guitarist.Picked.Nylon.KONTAKT.part6.rar


    • By artae
      In Session Audio - World Percussion Creator KONTAKT | 2.71 Gb
      Ethnic, hand played and regional drums are often used to conjure the sound of distant lands, age-old civilizations, exotic wildlife and human adventure. World Percussion Creator is a virtual instrument sample library designed to convey this natural sound in a new, larger and more flexible way.

      Where most libraries present limited variations, World Percussion Creator allows you to create, control and generate multiple solo and ensemble groups of your own from a selection of 36 drums and 36 small percussion instruments - all playable from a single interface.

      Like the other Creator libraries, World Percussion Creator contains a strong collection of specialty booms, slams, deep impacts and "ethno atmospheres", all designed to transform basic rhythms into polished drum tracks with greater emotional impact. With a purpose-built engine, hundreds of MIDI files, and an innovative yet simple-to-use feature set, World Percussion Creator is a match for anyone producing world music drum tracks.
      DOWNLOAD
      (Buy premium account for maximum speed and resuming ability)


      http://nitroflare.com/view/2BA8ED115B2BAA8/9t5ki.In.Session.Audio..World.Percussion.Creator.KONTAKT.part1.rar
      http://nitroflare.com/view/CB4D07917B33F57/9t5ki.In.Session.Audio..World.Percussion.Creator.KONTAKT.part2.rar
      http://nitroflare.com/view/58EB1C36F50666C/9t5ki.In.Session.Audio..World.Percussion.Creator.KONTAKT.part3.rar



      https://rapidgator.net/file/4bd384df06c9e4ff5a58608460738629/9t5ki.In.Session.Audio..World.Percussion.Creator.KONTAKT.part1.rar
      https://rapidgator.net/file/7556357b216dc54ac0bdcdede87b1558/9t5ki.In.Session.Audio..World.Percussion.Creator.KONTAKT.part2.rar
      https://rapidgator.net/file/6dd5e8fe47276331a32e7424c62a131e/9t5ki.In.Session.Audio..World.Percussion.Creator.KONTAKT.part3.rar


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...