overzichtelijk script

Gestart doorFreestyle10 reacties13 weergaven

11 berichten · pagina 1 van 1

Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hallo ik ben bezig met een website. en probeer een nieuwe manier om alles overzichtelijker te houden

ik wil 1 index gebruiken en de rest allemaal include
dus ook de paginas
mijn index ziet er als volgt uit

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>DJ Triple B</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="styles.css" rel="stylesheet" type="text/css" />
<script src="https://www.targetpay.com/send/include.js"> </script>
</head>

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/main.html[/COLOR][COLOR= #007700];[/COLOR]
?>
    
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/menu.html[/COLOR][COLOR= #007700];[/COLOR]
?>

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/home.html[/COLOR][COLOR= #007700];[/COLOR]
?>
    
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/bot.html[/COLOR][COLOR= #007700];[/COLOR]
?>
      
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/foot.html[/COLOR][COLOR= #007700];[/COLOR]
?>
    
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/end.html[/COLOR][COLOR= #007700];[/COLOR]
?>


maar nu is het probleem dat ik maar 1 pagina hebsadley
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/home.html[/COLOR][COLOR= #007700];[/COLOR] ?>


hoe zorg ik dat het automatisch verandert dat ik bijvoorbeeld naar de pagina contact kan??
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>DJ Triple B</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="styles.css" rel="stylesheet" type="text/css" />
<script src="https://www.targetpay.com/send/include.js"> </script>
</head>

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/main.html[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</br>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/menu.html[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</br>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/home.html[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</br>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/bot.html[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</br>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/foot.html[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]</br>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/end.html[/COLOR][COLOR= #007700];[/COLOR]
?>


en dan opslaan als index.php
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
bedankt

en als ik nu bijvoorbeeld naar pagina contact wil hoe moet ik dat
(de pagina die hier staat is home)
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
bij menu.html zit toch een menu toch?

kan je die geven
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
<div id="header">
    <div id="buttons">
          <div class="but1"  ><a href="pages/home" class="but1"  title="">Home</a></div>
          <div class="but2" ><a href="#" class="but2" title="">Blog</a></div>
          <div class="but3" ><a href="#"  class="but3" title="">Gallery</a></div>
          <div class="but4" ><a href="#"  class="but4" title="">About us</a></div>
          <div class="but5" ><a href="#" class="but5" title="">Contact us</a></div>
    </div>
</div>


kan je ook gelijk uitleggen wat je doetyummie
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
<div id="header">
    <div id="buttons">
      <div class="but1" ><a href="index.html" class="but1" title="home">home</a></div>       
      <div class="but2" ><a href="blog.html" class="but2" title="blog">Blog</a></div>
      <div class="but3" ><a href="gallery.html"  class="but3" title="gallery">Gallery</a></div>
      <div class="but4" ><a href="about.html"  class="but4" title="about">About us</a></div>
      <div class="but5" ><a href="contact.html" class="but5" title="contact">Contact</a></div>
    </div>
</div>


zo?

waar achter .html staat kan je veranderen in die pagina wat jij wil bijvoorbeeld je slaat een pagina op als hoi.html

dan heb je dit
home

bij de dik gedrukte letters kan je veranderen bijvoorbeeld hoi.html
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
maar hoe verander ik dit dan?
en moet blog etc, niet ook index.php staan?
en als url krijg ik dan toch: index.php?=home
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
wil je dat of heb je dat al?
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hoebedoel je?
wil ja dat of heb je dat al?

kan ik jouw anders het helescript geven dat jij het goed maakt

dus dat er altijd index.php staat?
en bij andere pagina: index.php?=paginanaam

je krijgt beloning
0
Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ja maar
index.php?=paginanaam

dat is een script heb je die script al of niet?
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
k weet eigenlijk nietyummie
ik heb op de eerste map
staan: index, style, images(map), pages(map)
in pages map staat: home (content text), menu etc,
images map staat: plaatjes van template
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren