Re: It just doesn't make sense!
| From: | Brian 'Bex' Huff | Date: | Fri, 17 Jan 2003 15:52:46 +0000 |
| Subject: | Re: It just doesn't make sense! | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-17943@lists.php.net to get a copy of this message | ||
Id just like to say, whaaaaaa???
maybe this is some wierd scope problem... what version of PHP are you using?
is $AppendStringToURL a global on the page? You might be able to work around this by declaring it global, but be careful of doing this too often ;)
You also might have to echo the value of $AppendStringToURL at several places in your script to make sure its not getting wiped somewhere.
--
Brian 'Bex' Huff
bex@stellent.com
Phone: 952-903-2023
Fax: 952-829-5424
> I am currently re-writing part of my website to allow people who don't use
> cookies to still use the site features. However, I have run into a problem.
> I send the session ID from page to page via the query string, and retreve it
> using $_GET. Everything works fine, and if set I store the details in
> $AppendStringToURL
>
> // Code for $AppendStringToURL
> if ( isset( $_GET[NonCookieLogin] ) ) {
> // Using other method to login
> $AppendStringToURL = "?NonCookieLogin=".$_GET[NonCookieLogin];
> }
>
> Again, this works fine. I then split the page into two frames as shown
> below:
>
> $FrameProperTarget =
> "http://".$_SERVER["HTTP_HOST"]."/".$FrameTarget.$AppendStringToURL;
> $OffsideTarget =
> "http://".$_SERVER["HTTP_HOST"]."/members/interface/"."offside.php".$AppendS
> tringToURL;
>
> The problem is that $FrameProperTarget gets the bit added on the end so that
> the ID is passed on, but $OffsideTarget does not get any value from
> $AppendStringToURL. For example:
>
> Value of $FrameProperTarget -
> http://scryt.no-ip.com/members/columns.php?NonCookieLogin=896c972ac44a7babdf
> 2549ead6f30b86
> Value of $OffsideTarget -
> http://scryt.no-ip.com/members/interface/offside.php
>
> As you can see, it has not added the bit onto the end... and I have no idea
> why. Since one works and the other doesn't, yet they both use the same
> construction method, they both use the same variable, and the
> $AppendStringToURL does not show up anywhere else in the source code of the
> HTML page (i.e. its not outside any ", it doesn't excist. Something has gone
> totally up the creek here... any ideas?