![]() |
Switches in pages
Im working on something for my own site and im just curious is all.
Basically i want to use 1 file lets call it wiki.php for example. Going by this thread: here i see and understand how to make the page itself. However i want to create multiple pages in one using templates. So lets say bob(example) goes to wiki.php and selects the option 1, the page stays on wiki.php but the page and url changes directly to: wiki.php?show=1 How would i go about doing this? I do not really want to make separate pages its easier if its all in 1 to be honest, any help would be appreciated. |
The vbulletin scripts use the "do" to do exactly that. You really just have to write your script with something like:
Code:
if ($_REQUEST['do'] == 'page1') and for instance if page 1 shows a menu, you just need to make the link href for the choices be something like "wiki.php?do=page2" (or if you want to submit a form, make the action "wiki.php" and include a hidden field with name 'do'). Of course if you want you can use 'show' for your parameter instead of do. |
Thanks very much :)
|
All times are GMT. The time now is 06:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|