Jump to content

lworks

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

About lworks

  • Birthday 06/14/1990

Contact Methods

  • Website URL
    http://www.razor-wire.net/
  • Yahoo
    skr0wl

Profile Information

  • Gender
    Male
  • Location
    Mississippi

lworks's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Actually, like if someone goes here: tutorals.php?section=1&page=2 .. now section 1 would be /tutorials/html/basics and page 2 would be /tutorials/html/basics-page-2.php. I don't understand how to get the page=2 into the URL.. [sub]if(!isset($_GET['section'])) { $section = 1; } else { $section = $_GET['section']; } if(!isset($_GET['page'])) { $page = 1; } else { $page = $_GET['page']; } switch($section){ case '1': include_once("/tutorials/html/basics/basics-THEPAGENUMBER.php"); break; blah blah }[/sub]
  2. Yea..some guy told me the same thing on an IRC channel. I still don't understand how to use it in a switch.
  3. I was wondering how to do something like this: tutorials.php?section=1&page=2 using a switch. I can get this: tutorials.php?section=1. Just don't know how to get the page part. Any help would be greatly appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.