Re: Distinguishing between multiple browser windows for thesame php session

From: Date: Sat, 03 Sep 2005 09:52:39 +0000
Subject: Re: Distinguishing between multiple browser windows for thesame php session
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-221804@lists.php.net to get a copy of this message
Ok! I didn't know that was wrong to "top-post"... I think I know what it is now! :-) /G @varupiraten.se ----- Original Message ----- From: "Jasper Bryant-Greene" <jasper@bryant-greene.name> To: <php-general@lists.php.net> Sent: Saturday, September 03, 2005 11:48 AM Subject: Re: [PHP] Distinguishing between multiple browser windows for thesame php session
Gustav Wiberg wrote:
<?php echo $_SELF;?> ?
Please don't top-post [1]. This will not work. $_SELF isn't even a defined variable, unless you defined it yourself. PHP works on the server, *before* anything is sent on the client, so it has no way to know client-side things like what browser window you are in. You could place the value in a hidden form field with JS and then post back to the server, but something tells me you may be approaching the problem in the wrong way. Without more details I can't suggest alternatives, though. [1] http://en.wikipedia.org/wiki/Top-posting -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/ If you find my advice useful, please consider donating to a poor student! You can choose whatever amount you think my advice was worth to you. http://tinyurl.com/7oa5s -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.18/89 - Release Date: 2005-09-02


« previous php.general (#221804) next »