Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

i am using two webpage in menu.php i am not able to get the detail of session variable it will display undefined index.

controller.php

    $info = mysql_fetch_array( $data );  
   session_start();
   // store session data
   $type="$info[TYPE]";
   $no="$info[NO]";

   $_SESSION['type']=$type;
   $_SESSION['no']=$no;
   echo "Pageviews=". $_SESSION['type'];
   echo "Pageviews=". $_SESSION['no'];
   header('Location:menu.php');

menu.php

    <?php sesstion_start();
     echo "Pageviews=". $_SESSION['type'];
    echo "Pageviews=". $_SESSION['no'];
    ?>
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
209 views
Welcome To Ask or Share your Answers For Others

1 Answer

sesstion_start();

See anything wrong in here? :P


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...