PHP - multiple pages in one script
I'm currently a html scripter who wants to get into php but i am stuck on a problem probably so easy that none bothered making a tut about it so i couldn't find anything that helped me :/
how do you get multiple webpages into one php script? or how do you add pages in general?
tutorial link would be appreciated.
KEEP IN MIND I'M STILL A NEWBIE...
I suppose what you need are:
-) $_REQUEST parameters (e.g. /index.php?site=news or /index.php?site=guestbook), google how to use them.
-) switch - case constructs (again use google)
-) and finally, includes, typically include("myscript.html") or include_once("myscript.html"), again google
These steps should help you!
Take a look at this tutorial, I learned PHP myself using this one 10 years ago:
thanks a lot. this will help me out
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread