Een pagina op een anderen pagina weergeven
Ik heb een nieuws systeem op mijn website
Nu wil ik graag dat news.php (De Pagina waar gasten niews kunnen zien)
Op een anderen pagina weergeven word
Het is vast wel mogelijk :)
Alvast bedankt :D
include().
Basiskennis: Ik heb dit script
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
<title>Ace's Layouts</title>
<style type="text/css">
<!--
a:link {
color: #000000;
}
a:visited {
color: #666666;
}
a:hover {
color: #999999;
}
a:active {
color: #000000;
}
-->
</style>
</head>
<body>
<div id="habbolayouts_com">
<div id="banner"></div>
<div id="banner2">
<!-- Begin: AdBrite -->
<A <IMG src="http://www.habbofansite.net/fontgen/index.php?text=Connect%20habbo&style=22"></A> <p></p>
<IMG src="http://www.habbofansite.net/fontgen/index.php?text=De besten Fansite!&style=78"></A>
<!-- End: AdBrite -->
</div>
<div id="banner3"></div>
<div id="navcontainer2">
<div id="navtop3"><br></br> <IMG src="http://www.habbofansite.net/fontgen/index.php?text=menu&style=78"></div>
<div id="navmiddle">Navigation<br />
Link<br />
Link<br />
Link<br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop"></div>
<div id="navmiddle">Support<br />
<a href="#">Link</a><br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop2"></div>
<div id="navmiddle">Polls<br />
Please add poll here</div>
<div id="navbottom"></div>
</div>
<div id="navcontainer">
<div id="navtop"></div>
<div id="navmiddle">Navigation<br />
Link<br />
Link<br />
Link<br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop2"></div>
<div id="navmiddle">Support<br />
<a href="#">Link</a><br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop3"></div>
<div id="navmiddle">Polls<br />
Please add poll here</div>
<div id="navbottom"></div>
</div>
<div id="contentcontainer">
<div id="contenttop">
<div align="right">Homepage - May 21, 2008 </div>
</div>
<div id="contentmiddle">
incidunt non, lobortis eget, nulla. Mauris scelerisque, turpis id mattis condimentum, eros justo sagittis magna, sed tristique felis lorem at justo. Nulla vitae nulla id nunc gravida ultricies. Vestibulum adipiscing. Duis venenatis auctor risus. Nulla eget quam. Nullam non enim eget ligula ultricies ullamcorper. Donec enim urna, malesuada a, blandit id, porttitor at, libero. Morbi purus est, aliquam non, fringilla convallis, hendrerit eget, lectus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec a pede tincidunt risus lobortis vehicula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aenean suscipit facilisis eros. Duis leo orci, ultricies at, pulvinar et, iaculis at, nisi. Ut ut leo ut massa vulputate ultricies. Praesent et lacus.
Morbi convallis viverra enim. Morbi ut dolor. Curabitur sit amet dolor. Etiam dictum. Suspendisse potenti. Morbi a dui. Mauris leo. Suspendisse potenti. Nullam faucibus purus in sapien. Duis ultricies mauris ac lacus. Mauris eu nulla non justo fringilla dapibus. Fusce commodo. In leo. Aliquam non tortor.</div>
<div id="contentbottom"></div>
<br>
<div id="footertop"></div>
<div id="footer">
<div align="center">Extra banners</div>
</div>
<div id="contentbottom"></div>
</div>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
<title>Ace's Layouts</title>
<style type="text/css">
<!--
a:link {
color: #000000;
}
a:visited {
color: #666666;
}
a:hover {
color: #999999;
}
a:active {
color: #000000;
}
-->
</style>
</head>
<body>
<div id="habbolayouts_com">
<div id="banner"></div>
<div id="banner2">
<!-- Begin: AdBrite -->
<A <IMG src="http://www.habbofansite.net/fontgen/index.php?text=Connect%20habbo&style=22"></A> <p></p>
<IMG src="http://www.habbofansite.net/fontgen/index.php?text=De besten Fansite!&style=78"></A>
<!-- End: AdBrite -->
</div>
<div id="banner3"></div>
<div id="navcontainer2">
<div id="navtop3"><br></br> <IMG src="http://www.habbofansite.net/fontgen/index.php?text=menu&style=78"></div>
<div id="navmiddle">Navigation<br />
Link<br />
Link<br />
Link<br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop"></div>
<div id="navmiddle">Support<br />
<a href="#">Link</a><br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop2"></div>
<div id="navmiddle">Polls<br />
Please add poll here</div>
<div id="navbottom"></div>
</div>
<div id="navcontainer">
<div id="navtop"></div>
<div id="navmiddle">Navigation<br />
Link<br />
Link<br />
Link<br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop2"></div>
<div id="navmiddle">Support<br />
<a href="#">Link</a><br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop3"></div>
<div id="navmiddle">Polls<br />
Please add poll here</div>
<div id="navbottom"></div>
</div>
<div id="contentcontainer">
<div id="contenttop">
<div align="right">Homepage - May 21, 2008 </div>
</div>
<div id="contentmiddle">
incidunt non, lobortis eget, nulla. Mauris scelerisque, turpis id mattis condimentum, eros justo sagittis magna, sed tristique felis lorem at justo. Nulla vitae nulla id nunc gravida ultricies. Vestibulum adipiscing. Duis venenatis auctor risus. Nulla eget quam. Nullam non enim eget ligula ultricies ullamcorper. Donec enim urna, malesuada a, blandit id, porttitor at, libero. Morbi purus est, aliquam non, fringilla convallis, hendrerit eget, lectus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec a pede tincidunt risus lobortis vehicula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Aenean suscipit facilisis eros. Duis leo orci, ultricies at, pulvinar et, iaculis at, nisi. Ut ut leo ut massa vulputate ultricies. Praesent et lacus.
Morbi convallis viverra enim. Morbi ut dolor. Curabitur sit amet dolor. Etiam dictum. Suspendisse potenti. Morbi a dui. Mauris leo. Suspendisse potenti. Nullam faucibus purus in sapien. Duis ultricies mauris ac lacus. Mauris eu nulla non justo fringilla dapibus. Fusce commodo. In leo. Aliquam non tortor.</div>
<div id="contentbottom"></div>
<br>
<div id="footertop"></div>
<div id="footer">
<div align="center">Extra banners</div>
</div>
<div id="contentbottom"></div>
</div>
</div>
</body>
</html>
Hoe moet ik het dan bewerken :S
Het moet wel in een div staan waar je de content wilt hebben
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
<title>Ace's Layouts</title>
<style type="text/css">
<!--
a:link {
color: #000000;
}
a:visited {
color: #666666;
}
a:hover {
color: #999999;
}
a:active {
color: #000000;
}
-->
</style>
</head>
<body>
<div id="habbolayouts_com">
<div id="banner"></div>
<div id="banner2">
<!-- Begin: AdBrite -->
<A <IMG src="http://www.habbofansite.net/fontgen/index.php?text=Connect%20habbo&style=22"></A> <p></p>
<IMG src="http://www.habbofansite.net/fontgen/index.php?text=De besten Fansite!&style=78"></A>
<!-- End: AdBrite -->
</div>
<div id="banner3"></div>
<div id="navcontainer2">
<div id="navtop3"><br></br> <IMG src="http://www.habbofansite.net/fontgen/index.php?text=menu&style=78"></div>
<div id="navmiddle">Navigation<br />
Link<br />
Link<br />
Link<br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop"></div>
<div id="navmiddle">Support<br />
<a href="#">Link</a><br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop2"></div>
<div id="navmiddle">Polls<br />
Please add poll here</div>
<div id="navbottom"></div>
</div>
<div id="navcontainer">
<div id="navtop"></div>
<div id="navmiddle">Navigation<br />
Link<br />
Link<br />
Link<br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop2"></div>
<div id="navmiddle">Support<br />
<a href="#">Link</a><br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop3"></div>
<div id="navmiddle">Polls<br />
Please add poll here</div>
<div id="navbottom"></div>
</div>
<div id="contentcontainer">
<div id="contenttop">
<div align="right">Homepage - May 21, 2008 </div>
</div>
<div id="contentmiddle">
<?php
include ("nieuws/news.php"); //Let wel op dat je de juiste pad hierin ook zet.
?>
<div id="contentbottom"></div>
<br>
<div id="footertop"></div>
<div id="footer">
<div align="center">Extra banners</div>
</div>
<div id="contentbottom"></div>
</div>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/template_css.css" rel="stylesheet" type="text/css" />
<title>Ace's Layouts</title>
<style type="text/css">
<!--
a:link {
color: #000000;
}
a:visited {
color: #666666;
}
a:hover {
color: #999999;
}
a:active {
color: #000000;
}
-->
</style>
</head>
<body>
<div id="habbolayouts_com">
<div id="banner"></div>
<div id="banner2">
<!-- Begin: AdBrite -->
<A <IMG src="http://www.habbofansite.net/fontgen/index.php?text=Connect%20habbo&style=22"></A> <p></p>
<IMG src="http://www.habbofansite.net/fontgen/index.php?text=De besten Fansite!&style=78"></A>
<!-- End: AdBrite -->
</div>
<div id="banner3"></div>
<div id="navcontainer2">
<div id="navtop3"><br></br> <IMG src="http://www.habbofansite.net/fontgen/index.php?text=menu&style=78"></div>
<div id="navmiddle">Navigation<br />
Link<br />
Link<br />
Link<br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop"></div>
<div id="navmiddle">Support<br />
<a href="#">Link</a><br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop2"></div>
<div id="navmiddle">Polls<br />
Please add poll here</div>
<div id="navbottom"></div>
</div>
<div id="navcontainer">
<div id="navtop"></div>
<div id="navmiddle">Navigation<br />
Link<br />
Link<br />
Link<br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop2"></div>
<div id="navmiddle">Support<br />
<a href="#">Link</a><br />
Link<br />
Link</div>
<div id="navbottom"></div>
<div id="spacer"></div>
<div id="navtop3"></div>
<div id="navmiddle">Polls<br />
Please add poll here</div>
<div id="navbottom"></div>
</div>
<div id="contentcontainer">
<div id="contenttop">
<div align="right">Homepage - May 21, 2008 </div>
</div>
<div id="contentmiddle">
<?php
include ("nieuws/news.php"); //Let wel op dat je de juiste pad hierin ook zet.
?>
<div id="contentbottom"></div>
<br>
<div id="footertop"></div>
<div id="footer">
<div align="center">Extra banners</div>
</div>
<div id="contentbottom"></div>
</div>
</div>
</body>
</html>
Hier een plaatje wat er dan gebeurd:
http://profile.imageshack.us/user/vinjasje/images/detail/#16/hierkomthet.jpg
Je bestand heeft uiteraard de extensie .php en niet .html
Gewijzigd op 01/01/1970 01:00:00 door stijn dfsdfs