Hi,
Perhaps this is simpler then I think it is. i know what I need but have no clue how to implement it.
I need to pass additional parameters to the next page in addition to the URL. Usually you would just use "&" to attach it, the problem in my case is that I already have couple of & in my URL that I am passing as well as one of the values. So what happens is: as soon as my URL opens the rest values just chop off the remainder of that URL and attach other valuea that I'm passing. A bit confusing, perhaps... My question is: Can I attach the values after the value that contains my URL in some other way?
Please see example below:
PAGE ONE ------>
...
$url .= "&xyz=" . $XYZ;
$continueUrl = $url
$url = "PAGE_TWO.php?continueURL=" . $continueUrl . "&siteName=". $siteName;
...
header("Location: $url");
?>
PAGE TWO ------>
print("<a href=\"". $continueURL ."\">go to ". $siteName ."</a>");
Unfortunatelly I can not (or at least I think I can't) use forms to pass the values, because the first page is just a script that automatically forwards user based on the condition either straight to the URL or to the second page (the one I'm failing to pass the entire URL to). The URL is stored in the db and unfortunatelly it contains "&" signs as it already have a few variables. What I'm able to pass is a part of the URL up to the first "&" sign.
I don't really want to forward user to the second page and draw the URL from the db on that page... It's a publically accessed page and I'd hate to put db access info in it.
Any suggestions?