Session variables not beeing tansferred between pages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akashakash
    New Member
    • Jul 2008
    • 1

    Session variables not beeing tansferred between pages

    pls help me


    i develop one php form and submit the next page and same data calculate such as total field etc. but problem when i m inserted to mysql table but do not that.
    i m declear the session in the top page but do not disppaly data into the third pages

    $pageno=$_REQUE ST['pageno'];
    echo "$pageno";
    $_SESSION['pageno']=$pageno;
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Originally posted by akashakash
    pls help me


    i develop one php form and submit the next page and same data calculate such as total field etc. but problem when i m inserted to mysql table but do not that.
    i m declear the session in the top page but do not disppaly data into the third pages

    $pageno=$_REQUE ST['pageno'];
    echo "$pageno";
    $_SESSION['pageno']=$pageno;
    Please do not hijack other's threads. Repost this question in a new discussion.

    Thanks,



    Dan

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Hi akashakash. Welcome to Bytes.

      I've moved your question into a separate thread. Please don't post new questions into pre-existing threads. It's just plain rude to the OP of that thread.

      Thanks.
      MODERATOR

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        As to your question. I didn't really understand what you were saying.
        Could you try to explain it a little clearer?

        A note tho, as this seems to be session related. To be able to pass session variables between two pages, both pages must call the session_start function at the top of the page, preferably before anything else is done (or at least before anything is printed).

        If your having problems with this, try turning on the debug messages and see if that gives you any useful error messages. Posting these messages here will also help us help you.

        Comment

        Working...