Wingthor Posted February 8, 2011 Report Share Posted February 8, 2011 I have read the API's documentataion regarding sending variables to scrips using the URL. Like index.php/moduletest/pageone/apple/red Gives the varible 'apple' the value 'red' to the script function pageone However I wan't a module to remember the setting, while fetching an other variable, like /beer/isgood. Next time the page is loaded the scripts remember that the user already has seleced red apples, when the user select the option beer is good. Then can process a page based on these settings? I am gone use this for creating dynamic SQL's where the where clause might cange, in terms of value and number of criterias given. Eg, first click filters on pilotid, next click filter on bids, and so on. Regards Quote Link to comment Share on other sites More sharing options...
Tom Posted February 9, 2011 Report Share Posted February 9, 2011 Similar to the index function you just create another, for example: public function beer($var){ //do stuff with $var } would look like yoursite.com/index.php/beer/var To remember things you can use sessions. Quote Link to comment Share on other sites More sharing options...
Wingthor Posted February 9, 2011 Author Report Share Posted February 9, 2011 Similar to the index function you just create another, for example: public function beer($var){ //do stuff with $var } would look like yoursite.com/index.php/beer/var To remember things you can use sessions. Indeed, http://www.php.net/manual/en/ref.session.php. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.