Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Files
06-27-2012, 03:53 AM
Post: #1
Multiple Files
Is there a way to identify (in base.php) the main page option which was selected by the user?
I have a need for 3 .dat files (personal, business and commercial) with corresponding file management options in the home page. Each file has exactly the same structure, I simply need to determine which of the three files needs to be Loaded/Saved and this would be according to the main page option chosen.

If you don't squeak, you won't get oiled!Cool
Find all posts by this user
Quote this message in a reply
06-27-2012, 09:25 PM
Post: #2
RE: Multiple Files
I'm not understanding the issue. Could you clarify or rephrase? Thanks.

Author of Barebones CMS

If you found my reply to be helpful, be sure to donate!
All funding goes toward future product development.
Find all posts by this user
Quote this message in a reply
06-27-2012, 11:00 PM
Post: #3
RE: Multiple Files
In my main page menu I have three options...

$menuopts = array(
"Just Leasing CMS" => array(
"Personal Vehicles" => BB_GetRequestURLBase() . "?action=managevehiclesp&sec_t=" . BB_CreateSecurityToken("managevehiclesp"),
"Business Vehicles" => BB_GetRequestURLBase() . "?action=managevehiclesp&sec_t=" . BB_CreateSecurityToken("managevehiclesp"),
"Commercial Vehicles" => BB_GetRequestURLBase() . "?action=managevehiclesp&sec_t=" . BB_CreateSecurityToken("managevehiclesp"),
"Logout" => BB_GetRequestURLBase() . "?action=logout&sec_t=" . BB_CreateSecurityToken("logout"),

I need to set a variable indicating the option chosen.

How would I do this?

If you don't squeak, you won't get oiled!Cool
Find all posts by this user
Quote this message in a reply
06-28-2012, 12:28 AM
Post: #4
RE: Multiple Files
I managed to sort it by appending a relevant &choice= to each of the GetRequest calls and adjusting the filename to be used accordingly. Thanks anyway!

If you don't squeak, you won't get oiled!Cool
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

© CubicleSoft