I realize this is Friday of a US 3-day weekend, but I need to continue to resolve this. I've gotten this far with your advice. The first time the third page executes, it now starts correctly as,
Code:
http//www.domain.com/xxx/yy/zzz/index2.php?redirect=/xxx/yy/zzz/program.php
But I realize now the problem is that the second time (and others if the entries are incomplete) the recursive third page executes, it has a URL of just the page, and it doesn't contain the previous wanted and correct $_GET part, i.e., it is
Code:
http://www.domain.com/xxx/yy/zzz/index2.php
and not the needed
Code:
http//www.domain.com/xxx/yy/zzz/index2.php?redirect=/xxx/yy/zzz/program.php
Of course this page, index2.php contains the php code to generate its html code, and I think that there should be something there to control the URL, perhaps I need to change something in the $_SERVER or $HTTP_SERVER_VARS arrays, (like $_NEXT_URL=$_LAST_URL
)or maybe add something to the html generator, which now starts with this function:
Code:
function _begin_html()
{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<link rel="STYLESHEET" type="text/css" href="lib/style.css">
<title>Data Access Authentication</title>
</head>
<body>
<?
}
I figure that if the URL ALWAYS contains the redirect part, then the $_GET will always retrieve the target link and the header location statement will be correct. I just can't find the solution, so please, I need just a little bit more help. Thinking that I can do something like this:
Code:
$_SERVER['THER_RIGHT_VARIABLE']=$SERVER['SCRIPT_NAME'].'?'.$SERVER['QUERY_STRING']
I'm half way there now, but what is the right variable? Please let me know how to do this. Thanks
Bookmarks