CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Use PHP to control the <head>contents...</head> in HTML output

Print topic Send  topic

Author Message
kklou

Posts: 4
Posted: 07/08/2007, 10:22 PM

Hi, CCS expertises,

i need to dynamically change the HTML <head>contents</head> by CCGetFromGet ('X') or CCGetFromPost('X').
Pls advise how to achieve it.
for example:
if X=0, show the <script> and the <link> tags and their contents.
if X=1, no <script> and <link> tags and their contents in the output HTML, even no <head>...</head>
I need these in PHP language.

thanks in advance.
View profile  Send private message
DonB
Posted: 07/09/2007, 8:31 AM

The entire html file is a 'template', so you can add to, remove from, or
modify what's there. Using label controls - that you assign values to at
run time - is one way to do what you indicated. Just strip the head from
the template, put in a Label and then add a Before Show event to the label.
Similarly, a template variable and code in the page's Before Show event
could be used.

--
DonB

http://www.gotodon.com/ccbth


"kklou" <kklou@forum.codecharge> wrote in message
news:54691c62aa6ac4@news.codecharge.com...
> Hi, CCS expertises,
>
> i need to dynamically change the HTML <head>contents</head> by
CCGetFromGet
> ('X') or CCGetFromPost('X').
> Pls advise how to achieve it.
> for example:
> if X=0, show the <script> and the <link> tags and their contents.
> if X=1, no <script> and <link> tags and their contents in the output HTML,
even
> no <head>...</head>
> I need these in PHP language.
>
> thanks in advance.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.yessoftware.com/
>

kklou

Posts: 4
Posted: 07/09/2007, 8:21 PM

thanks for your quick response. Will try your suggestions first.
thanks again.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.