abdfahim
Well-known member
What is the best way to pass some parameter to the PHP callback function from a custom page.
Let say, in a custom page, I show all the members' username and country. I have 2 buttons to sort the list by username or by country.
So, when a user clicks either of the buttons, I want to reload the data accordingly, hence need to pass the sort parameter to the PHP callback function to sort the data while fetching from the database.
Let say, in a custom page, I show all the members' username and country. I have 2 buttons to sort the list by username or by country.
So, when a user clicks either of the buttons, I want to reload the data accordingly, hence need to pass the sort parameter to the PHP callback function to sort the data while fetching from the database.