php - How to make website pages accessed by code -
it's pretty hard explain if have better title guest..
basically made website 5 pages.
1) index.html 2) page.html 3) footer.html 4) menu.html 5) contact.html
in order access pages have type page name @ end of domain (i bet knew that..)
i wanted access pages code.. example -> mywebsite.com\?page=contact
how can ?
kind regards, kobi.
why don't make index.php
following code:
<?php include($_get['page'].'.html'); ?>
the result be:
- calling
mywebsite.com/?page=contact
openmywebsite.com/index.php?page=contact
because default - the url stay
mywebsite.com/?page=contact
- the script load file
contact.html
, show it
Comments
Post a Comment