dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: PHP - multiple pages in one script

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    3

    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...

  2. #2
    Join Date
    Mar 2011
    Posts
    65
    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:
    http://tut.php-quake.net/en/

  3. #3
    Join Date
    Jul 2012
    Posts
    3
    thanks a lot. this will help me out

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles