passing urlencoded url's via a $variable.......

This is a discussion on passing urlencoded url's via a $variable....... within the PHP Language forums, part of the PHP Programming Forums category; Hi All, Advice gratefully needed....... I am trying to present the same content on multiple sites, but allowing the style ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-02-2003
sentinel
 
Posts: n/a
Default passing urlencoded url's via a $variable.......

Hi All,

Advice gratefully needed.......

I am trying to present the same content on multiple sites, but
allowing the style and formatting to be changed via an external CSS
style sheet.

The problem is the client site pulls of the content from my main site
into an IFRAME on their site. Because the content of the IFRAME on the
client site shows the page exactly as it sits on my site, I need a way
for the content pages on my site to link to a CSS file on the client
site, then output HTML to the client site.

What I came up with was:

//Put the following line in a PHP include file on the client site:

$get="?linker=".urlencode("http://mysite/mypath/CSS/docstyle.css");

//Append the $get variable to the src tag of the IFRAME on the client
site. The IFRAME is created with an echo statement, with the name of
the file passed from a previous page via a hidden variable

src="http://mysite/mypath/Pages/doc_store/'.$_POST["hidden"].$get.'"

//Add the following to all the content pages sitting on my site:

<link href="<?php echo $linker ;?>" rel="stylesheet" type="text/css">


Does this make sense ?

This worked when testing it locally, but failed to work when I tested
it live this morning.

I've checked the obvious things like the spelling of the paths, etc,
and am a bit stumped.

Any advice appreciated.

Rdgs
Neil.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0