I am creating a site using codeigniter with a controller process.php. In its index function it gets a list of countries from my db and lists in in my view with a hyperlink to each country. I would like each link to have a hyperlink of http://localhost/process/$countrycode where $countrycode is dependent on the country being clicked.
How do i create a method to have a link such as: http://localhost/process/us for united states http://localhost/process/ca for canada
the method will perform a task based on the country.
From what i understand with codeigniter urls, it is example.com/class/function/ID but what i would like to achieve is not to include the function in the URL