Welcome Guest, Not a member yet? Register   Sign In
I need to get unstuck with a problem. Will you help? :(
#7

[eluser]Michael Wales[/eluser]
I would use URI Routing instead of the _remap magic, but for the sake of having it all in one file easy to understand. You will of course, want to add in a ton of error checking.

Code:
function _remap($method) {
  if ($method == 'form_processor') {
    $this->form_processor();
  } else {
    $this->show_categories();
  }
}

function form_processor() {
  redirect($_POST['form_input']);
}

function show_categories() {
  $category_string = $this->uri->segment(1);
}


Messages In This Thread
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-30-2008, 03:10 PM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-30-2008, 04:46 PM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-30-2008, 08:49 PM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-31-2008, 11:14 AM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-31-2008, 04:25 PM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-31-2008, 05:47 PM
I need to get unstuck with a problem. Will you help? :( - by El Forum - 01-31-2008, 06:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB