Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
| Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 5th, 2006, 09:37 AM
Authorized User
 
Join Date: Aug 2005
Location: , , Finland.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP Multipage to look like one

How can i do with PHP so that my pages would look like
index.php?page=main for main page
index.php?page=links for links page
index.php?page=login for login page


  #2 (permalink)  
Old September 5th, 2006, 11:19 AM
Registered User
 
Join Date: Sep 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

switch ($_GET['page']) {
 case 'main':
  //main
  break;
 case 'links':
  //links
  break;
 case 'login':
  //login
  break;
}

  #3 (permalink)  
Old September 5th, 2006, 12:52 PM
Authorized User
 
Join Date: Aug 2005
Location: , , Finland.
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can I make it so that the pages realy exist as main.php, links.php and login.php,
but to user it looks like they all in one page



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA Multipage Suhaskurse Access VBA 2 June 1st, 2011 01:57 PM
multipage activate Fat_and_immoral Excel VBA 5 March 7th, 2007 02:03 PM
PHP Multipage Imaging veggivore PHP How-To 0 August 29th, 2006 11:07 PM
use of multipage MANOJMETAL VS.NET 2002/2003 0 April 17th, 2004 01:29 AM
TabsStrip and Multipage perignon Beginning VB 6 1 March 1st, 2004 04:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.