473,394 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Re: pass the page id to the css.php

Well, i already have the css in a seperate file. the file is called
style.php

my header.php calls this file using:

<style type="text/css" media="all">
<!--
@import url("css/style.php");
-->
</style>

i have tried everything but i can't seem to make the style.php file
get the page id so my code will work.
Jul 25 '08 #1
3 1492
jsd219 wrote:
Well, i already have the css in a seperate file. the file is called
style.php

my header.php calls this file using:

<style type="text/css" media="all">
<!--
@import url("css/style.php");
-->
</style>

i have tried everything but i can't seem to make the style.php file
get the page id so my code will work.

Uh, what is the flow? You have file1 calling the page you want. I
don't know when the php is run in the case of an "@import". If it is
done at the client level, then all you are doing is passing in a php
script that the client has no idea on how to handle. Why not do a view
source to answer that question?

In any case, if you change "@import" to "require", with the appropriate
tags in style.css or surround the require with the tags, then it should
work.
Jul 25 '08 #2
I V
On Fri, 25 Jul 2008 11:05:26 -0700, jsd219 wrote:
<style type="text/css" media="all">
<!--
@import url("css/style.php");
-->
</style>

i have tried everything but i can't seem to make the style.php file get
the page id so my code will work.
What happens with:
<style type="text/css" media="all">
<!--
@import url("css/style.php?pgID=<?php echo $pgID ?>");
-->
</style>
Jul 26 '08 #3
..oO(I V)
>On Fri, 25 Jul 2008 11:05:26 -0700, jsd219 wrote:
><style type="text/css" media="all">
<!--
@import url("css/style.php");
-->
</style>

i have tried everything but i can't seem to make the style.php file get
the page id so my code will work.

What happens with:
><style type="text/css" media="all">
<!--
@import url("css/style.php?pgID=<?php echo $pgID ?>");
-->
</style>
Better:

<style type="text/css" media="all">
@import url("css/style.php?pgID=<?php echo $pgID ?>");
</style>

Or use a 'link' element instead.

Micha
Jul 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Andy Fish | last post by:
Hi, I have a javascript solution where page A launches page B in a second window and then they can pass data between them. That's all well and good. Now say page B wants to navigate to page C...
2
by: Shabam | last post by:
I need to have a static html page basically pass all GET arguments from one page to another. For example, I'm on page A. It has "x=12&y=45". There's a link on page A that goes to page B. Page B...
7
by: liyang3 | last post by:
Hi, I have Class A, B and C. Class A has an instance of B. Class B has an instance of C. In the instance of C, it generates some data that need to be passed back to Class A. But Class C...
4
by: tom | last post by:
Hi Experts, I want to pass the selectedDate value from my calender form to another web form or a web user control. Could you please show me how to do this? Thanks in advance.
3
by: Chris | last post by:
I have a modal (yes it must be modal) web page. I do this by having an empty frame that points to my main page (so that I can repost without new popups) I have to pass data to the child page from...
8
by: darrel | last post by:
I'm still trying to fully understand how best to pass variables between pages/usercontrols/each other. On a current site I've done, I've had one userControl do the logic and set the variable,...
17
by: Rabbit | last post by:
Hi, On my 1st page, i have a function which gets a new ID value and need to transfer to another immediately. which I want to get in 2nd page using Request.form("txtID"), but doesn't work, the...
5
by: slowmotiongenius | last post by:
All- I have established an adodb recordset in my code-behind, and I need to pass it to the aspx file. I can't seem to figure out if there is a way to do this. I see you can pass a string over...
1
by: colleen1980 | last post by:
Hi: Can any one please tell me that how to i pass the two textbox values in the new page. If i use the form action in the popup window page then the new page is open in the same popup window as i...
9
by: JRough | last post by:
I tried to pass the $result from a mysql_query in a url like this line Header("Location:clm_historyXL.php?_result=".$result); but on the redirect location clm_history.php page I get an error on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.