hello, at first, sorry on my bad english.
i have a problem.
on
index.php:
<?
$include=array(
"link"=>"link.h tml",
);
$stranica="prva .html";
if(isset($_GET) ){
$str=array_keys ($_GET);
if(array_key_ex ists($str[0],$include)){
$stranica=$incl ude[$str[0]];
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitl ed Document</title>
</head>
<body>
<li><a href="index.php ?pocetna">Pocet na</a></li>
<li><a href="index.php ?link">linkovi</a></li><br>
<?php include($strani ca); ?>
</body>
</html>
link.html:
<?php
$moj_naslov='li nkovi';
?>
<h2>Linkovi</h2>
prva.html:
<?php
$moj_naslov='pr va stranica';
?>
<h2>Prva Stranica</h2>
how in index.php to change
<title>Untitl ed Document</title>
into <title>linkov i</titleor <title>prva stranica</titledepending what
is loaded
"moj_naslov " means "my title"
thanks from Croatia. 1 1472
Here's one way:
[home.php]
<?
$title = 'My Site - Home';
require('header .php');
?>
<p>Home</p>
<? require('footer .php') ?>
[header.php]
<html>
<head>
<title><?= $title ?></title>
</head>
<body>
[footer.php]
</body>
</html>
You can browse to home.php and see your template. If you need an
index.php controller, you could do:
[index.php]
<?
$pages = array('home' ='', 'services' ='', 'about' ='');
if (isset($pages[$_GET['page']])) {
$page = $_GET['page'];
} else {
$page = 'home';
}
$title = 'My Site';
require("$page. php");
?>
On Jun 18, 12:14 pm, "Proximus" <veleprodajaOBR ISI...@proximus-os.hr>
wrote:
hello, at first, sorry on my bad english.
i have a problem.
on
index.php:
<?
$include=array(
"link"=>"link.h tml",
);
$stranica="prva .html";
if(isset($_GET) ){
$str=array_keys ($_GET);
if(array_key_ex ists($str[0],$include)){
$stranica=$incl ude[$str[0]];
}}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitl ed Document</title>
</head>
<body>
<li><a href="index.php ?pocetna">Pocet na</a></li>
<li><a href="index.php ?link">linkovi</a></li><br>
<?php include($strani ca); ?>
</body>
</html>
link.html:
<?php
$moj_naslov='li nkovi';
?>
<h2>Linkovi</h2>
prva.html:
<?php
$moj_naslov='pr va stranica';
?>
<h2>Prva Stranica</h2>
how in index.php to change
<title>Untitl ed Document</title>
into <title>linkov i</titleor <title>prva stranica</titledepending what
is loaded
"moj_naslov " means "my title"
thanks from Croatia.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: wukexin |
last post by:
Help me, good men. I find mang books that introduce bit "mang header
files",they talk too bit,in fact it is my too fool, I don't learn it, I have
do a test program, but I have no correct doing result in any way. Who can
help me, I thank you very very much.
list.cpp(main program)
//--------------------------------------------------------------------------
-
#pragma hdrstop
#pragma argsused
|
by: Christian Christmann |
last post by:
Hi,
in the past I always appreciated your help and hope that you also can help
me this time. I've spent many many hours but still can't solve the
problem by myself and you are my last hope.
I've a program which is using self-written double-linked lists as a data
structure. The template list consists of list elements and the list itself
linking the list elements.
|
by: tyler_durden |
last post by:
thanks a lot for all your help..I'm really appreciated...
with all the help I've been getting in forums I've been able to continue
my program and it's almost done, but I'm having a big problem that I
believe if it's solved, the remaining stuff is easy...
my full program until now is here:
http://www.geocities.com/tom4_h4wk/progmail.zip
the problem is the segmentation fault when main trys to run
leficheiro.c.... the *.c2 files are the...
|
by: Erik |
last post by:
Hi Everyone,
I'm having real problems compiling some source for eVC4++. The errors
I am getting are below:
It all seems to be centred around winsock. If I move the afsock.h
reference to before my other includes then I get lots of errors like
C2011: 'fd_set' : 'struct' type redefinition
warning C4005: 'FD_CLR' : macro redefinition
which I understand are due to the fact that windows.h is being
included in another header file as well as...
|
by: BK-Chicago |
last post by:
I am in the midst of porting a massive MFC application from VS6.0 to VS8.0.
While i have fixed most of the compile time errors, i do have quite a linker
error that i have not been able to resolve. The error i get is
Error 100 error LNK2001: unresolved external symbol "public: virtual void
__thiscall CWnd::PostNcDestroy(void)"
(?PostNcDestroy@CWnd@@UAEXXZ) Evenout.obj
I have about 200 of these on almost all the obj's that have a dialog...
| |
by: ligong.yang |
last post by:
Hi all,
I got tortured by a very weird problem when I was using k. wilder's
random generator class in my program. PS: wilder's generator class can
be found at http://oldmill.uchicago.edu/~wilder/Code/random/.
Firstly, I got the notorious "fatal error C1010: unexpected end of file
while looking for precompiled header directive" error when I tried to
compile 'randtest.c' provided by wilder.
|
by: ligong.yang |
last post by:
Hi all,
I got tortured by a very weird problem when I was using k. wilder's
random generator class in my program. PS: wilder's generator class can
be found at http://oldmill.uchicago.edu/~wilder/Code/random/.
Firstly, I got the notorious "fatal error C1010: unexpected end of file
while looking for precompiled header directive" error when I tried to
compile 'randtest.c' provided by wilder.
|
by: Alami |
last post by:
I'm newdie in c programming. this is my first project in programming.
I have to write a program for a airline reservation. this is what i
have done yet. but when it runs it shows the number of seats as 0 and
the flight no. is also repeating. If any can tell why is this please
help me.
#include<stdio.h>
#include<ctype.h>
#include<conio.h>
#include<memory.h>
|
by: slizorn |
last post by:
hi guys,
i need to make a tree traversal algorithm that would help me search the tree..
basically i need to read in a text file... shown below
H
H,E,L
E,B,F
B,A,C
A,null,null
c,null,D
|
by: priyajohal |
last post by:
#include<fstream.h>
#include<process.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
#include<ctype.h>
#include<stdio.h>
void setup()
void help();
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |