html - Passing variables between PHP scripts -


i have problem , can not understand why not working. language not transferred , see empty area.

in php:

<?php $_session['language']   = $_get['spanish']; header("location:../index.php"); exit; ?> 

in index.php:

<?php      $language   = $_session['language'];       include 'header.php';      echo '<div id="content">              <img src="images/splashscreen.jpg" id="bgimage" alt="city" width="1280" height="720" />                 <div class="splashouterringsoverlay" id="contain">                     <img src="images/loading-outer-circle.png" id="image1" alt="inner ring" width="282" height="282">                 </div>                 <div class="splashinnerringsoverlay" id="contain">                     <img src="images/loading-inner-circle.png" id="image2" alt="outer ring" width="282" height="282">                 </div>                 <div class="splashbuttonoverlay">                     <!--<button type="button" id="splashbutton" onclick="loaddata(20)"></button>-->                     <button type="button" id="splashbutton" onclick="loadlangcustom(\'spanish\')"></button>                 </div>                 <div class="splashtitleoverlay">                     <p id="splashtitle">'.$language.'</p>                     <!--<p id="splashtitle">please press bermad icon</p>-->                 </div>         </div>';      include 'footer.php'; ?> 

add session_start() in beginning of code

--

<?php session_start(); $_session['language']   = $_get['spanish'];     <?php session_start(); $language   = $_session['language']; 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -