Variable disappears when I log in

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-12-24T00:42:01Z Indexed on 2010/12/24 0:54 UTC
Read the original article Hit count: 209

Filed under:
|

Hello,

I have profile page where the profile is retrieved via GET. The index file has this:

$profile = $_GET['profile'];

When I log in on the profile page, the $profile variable disappears. Here is the form action on the login function:

<form name="login-form" id="login-form" method="post" action="./index.php">

(The $profile variable is separate of the login username.)

How could I make the page retain the $profile variable?

Thanks in advance,

John

© Stack Overflow or respective owner

Related posts about php

Related posts about html