Eerste vraag opgelost, heb nu een nieuwe vraag.
Zie daarvoor mijn laatste post.
Zie daarvoor mijn laatste post.
Sebastiaanh schreef:Ja, dat bedoelde ik.Bedoel je op 2 verschillende paginas?
Nee, dan zal je de andere pagina moeten includen.
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina.php[/COLOR][COLOR= #007700]);[/COLOR]
?> [COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina.php[/COLOR][COLOR= #007700]);[/COLOR]
?> 

Sebastiaanh schreef:Dit:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina.php[/COLOR][COLOR= #007700]);[/COLOR]
?> [COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pagina.php[/COLOR][COLOR= #007700]);[/COLOR]
?> 
Hij requiert hem vanuit zijn eigen map dus als je index.php ook in bijv die bananenmap staat hoef je de map niet op te geven.
Melvinho schreef:maar index.html of index.php maakt dus niet uit?dan werkt de php meestal ook niet... als je een php script in je pagina doet sla hem dan gewoon op als jenaam.php
Teletext schreef:Jawel, index.html is een html file je alleen html werkt dus. index.php heb je nodig om php in te gebruikenmaar index.html of index.php maakt dus niet uit?Eerdere citaten tonen
Melvinho schreef:dan werkt de php meestal ook niet... als je een php script in je pagina doet sla hem dan gewoon op als jenaam.php