Welcome Guest, Not a member yet? Register   Sign In
Is there a way of detecting POST data in URL requests before routing them?
#1

[eluser]sorenchr[/eluser]
I have several routes that only exist because they are 'responses' to ajax POST requests:

Code:
$route['join/register']          = "ajax/join/register";
$route['retrieve/lostpassword']  = "ajax/retrieve/lostpassword";
$route['retrieve/resetpassword'] = "ajax/retrieve/resetpassword";

So I was thinking of something like this(I know it doesn't work but you get the idea):

Code:
if(isset($_POST))
{
  $route['everything'] = "ajax/".theroutehere;
}


Messages In This Thread
Is there a way of detecting POST data in URL requests before routing them? - by El Forum - 01-25-2011, 11:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB