Re: Url of frame in php variable
| From: | patrick anderson | Date: | Thu, 01 Aug 2002 13:19:15 +0000 |
| Subject: | Re: Url of frame in php variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-110664@lists.php.net to get a copy of this message | ||
I would like to include a style sheet based on the url;
the references to the style sheet are stored in MySQL.
I guess the way to code this would be to use php to create
the javascript code with the list of style sheets.
thanks,
patrick
Justin French wrote:
> the only way would be with javascript, but remember, this would be done
> AFTER the page leaves the server (client side), so it will be quite messy.
>
> or you could try keeping track of what the sub-frame is doing with
> sessions... each time you change it's URL, update the session variable.
>
> or you could re-think your code design so you don't have to rely on
> something so complicated :)
>
> I guess knowing the reason why you need to do this might enable us to give
> you more help.
>
> Justin French
>
> on 01/08/02 10:32 PM, patrick anderson (p.d.anderson@tue.nl) wrote:
>
> > Hi,
> >
> > does anyone know of an elegant way to get the Url of the current frame
> > in a php variable.
> >
> > Thanks for any suggestions.
> >
> > Patrick
> >
> > PS I know that PHP_SELF will provide the url of the main frame
> >