code in login page is:
header("Location: index.php?$page");
how do i get the data from the variable in index page after redirect from login page
You mean the $page value? Or some other variable? If you mean $page (which I assume is a name-value pair like "var=someValue", if not then you aren't sending it correctly) then in index.php you can read it from the request as
$var=$_GET['var'];
If this is not what you are asking about, please reply with a little bit more detail on the question.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Offline 6,761 posts
since May 2007