Hey, ik heb eindelijk door hoe ik met horizontale includes moet werken.
bv:
Nu heb ik van iemand wat code gekregen, waarmee ik pagina's als volgt kan maken:
Nu ziet dit er heel anders uit bij mij lol
:
http://www.driesdegendt.com/projectphp/
Dit is mijn code van de pagina's:
- Index.php
In includes/:
- Footer.php:
- Header.php:
- Leftnav.php:
- Rightnav.php:
Kan iemand mij helpen?
Bedankt!
bv:
code:
1
2
3
| header content footer |
Nu heb ik van iemand wat code gekregen, waarmee ik pagina's als volgt kan maken:
code:
1
2
3
| header
lefnav | content | rightnav
footer |
Nu ziet dit er heel anders uit bij mij lol
http://www.driesdegendt.com/projectphp/
Dit is mijn code van de pagina's:
- Index.php
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| <?php
$headtitle = "Index";
include ("includes/header.php");
include ("includes/leftnav.php");
?>
<td valign="top">
<TABLE WIDTH=527 BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
<TR>
<td width="527" class="main">
<p align="center">**************************************<br>
CONTENT KOMT HIER <br>
**************************************<br>
</p>
</td>
</TR>
</TABLE>
<?php
include ("includes/rightnav.php");
include ("includes/footer.php");
?></td> |
In includes/:
- Footer.php:
code:
1
2
3
4
5
6
7
8
9
10
| <html><head>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="770">
<tbody><tr>
<td width="410"><p align="center">**********************************************************************************************
FOOTER.PHP<br>
********************************************************************************************** </p>
</td>
</tr>
</tbody></table>
</body></html> |
- Header.php:
code:
1
2
3
4
5
6
7
8
9
10
| <html><head>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="770">
<tbody><tr>
<td width="410"><p align="center">**********************************************************************************************
HEADER.PHP<br>
********************************************************************************************** </p>
</td>
</tr>
</tbody></table>
</body></html> |
- Leftnav.php:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| <html><body>
<table width="100" height="700" border="0" align="left" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="lefttable" valign="top"><div class="lefttabletop">
<p>**************************<br>
LEFTNAV.PHP<br>
**************************</p>
</div>
</td>
</tr>
</tbody>
</table>
</body></html> |
- Rightnav.php:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| <html><body>
<table width="100" height="700" border="0" align="left" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="lefttable" valign="top"><div class="lefttabletop">
<p>**************************<br>
RIGHTNAV.PHP<br>
**************************</p>
</div>
</td>
</tr>
</tbody>
</table>
</body></html> |
Kan iemand mij helpen?
Bedankt!