Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.


    • CommentAuthorgilray
    • CommentTimeNov 14th 2006
     
    I have used the php header to redirect my web page to another with some variables passing. The variables are visible in the address bar in the destination how can I hide this variables (like in POST method)

    My code:

    header("Location: ../admin/login.php?flag=$Flag&Message=$message");
    • CommentAuthorphilips
    • CommentTimeNov 14th 2006
     
    Try encode it before you put it into the header location.


    $Encrypt1 = "Some Text";
    $Encrypt2 = "Some Text";

    $Flag = base64_encode($Encrypt1);
    $Message = base64_encode($Encrypt2);

    header("Location: ../admin/login.php?flag={$Flag}&Message={$Message}");

    so pretty much how this works is, it uses a command called "base64_encode" to encrypt your text. To decrypt it back into it's original state, just use another command called "base64_decode". Hope that helps!