SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Sep 2004
    Location
    Milnerton
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Post ?id=$id to a header script

    Hi,

    I need to find a script that will post ?id=$id to a header script, I also need a script in my header to store it temporary, and another php page to get that variables again, can it be done?

    regards

  2. #2
    Non-Member St.'s Avatar
    Join Date
    Nov 2004
    Location
    Cloud #9
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What about put this into $_SESSION array?

  3. #3
    SitePoint Member
    Join Date
    Sep 2004
    Location
    Milnerton
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, the session id is not just any generated session id, it is made up of

    $session = $PHPSESSID;
    $newid = "$session&$companypassword&$emailaddress&$clientid&$active";
    $id = base64_encode("$newid");

    what do you recommend?

  4. #4
    Non-Member St.'s Avatar
    Join Date
    Nov 2004
    Location
    Cloud #9
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what are you whant in realy?
    what is id?
    it is security key or id of page or same more?

  5. #5
    SitePoint Guru ujjwal's Avatar
    Join Date
    Oct 2004
    Location
    kolkata
    Posts
    821
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sonar
    Hi,

    I need to find a script that will post ?id=$id to a header script, I also need a script in my header to store it temporary, and another php page to get that variables again, can it be done?

    regards
    r u looking that?

    header("Location: /trader/admin.php?user=$a");
    In an admin.php
    u can receive that information like that
    $user = empty($_REQUEST['user']) ? '' : $_REQUEST['user'];

  6. #6
    SitePoint Guru ujjwal's Avatar
    Join Date
    Oct 2004
    Location
    kolkata
    Posts
    821
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by sonar
    Well, the session id is not just any generated session id, it is made up of

    $session = $PHPSESSID;
    $newid = "$session&$companypassword&$emailaddress&$clientid&$active";
    $id = base64_encode("$newid");

    what do you recommend?
    session_start();
    $sid=session_id();

  7. #7
    SitePoint Member
    Join Date
    Nov 2004
    Location
    Next to the Biz Hub
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do u want the session id or some other variable?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •