title: anchor() function in code igniter
body: <p>I want to use the anchor function to route a view to a controller, however I wanna pass in some variables such as $groupid,$jurisdictionid and append them to the uri segment argument.</p>
  
  <p>For instance,</p>
  
  <p>$groupid=(input by user)
  $jurisdictionid=(input by user)</p>
  
  <p>anchor ('pagetohit/$groupid/$jurisdictionid')</p>
  
  <p>how do I format this correctly since I want those varaibles to take on the values they are assigned before the anchor function takes them and routes the url.</p>