Welcome Guest, Not a member yet? Register   Sign In
Block GET Call to method
#4

[eluser]Ceros[/eluser]
Nevermind, I found this:

$_SERVER['REQUEST_METHOD']

Return GET or POST

so all you have to do is:

Code:
if($_SERVER['REQUEST_METHOD'] == "POST"){
   //do stuff
}else{
   //return to index or error page
}


Messages In This Thread
Block GET Call to method - by El Forum - 02-14-2010, 02:50 PM
Block GET Call to method - by El Forum - 02-14-2010, 03:51 PM
Block GET Call to method - by El Forum - 02-14-2010, 05:03 PM
Block GET Call to method - by El Forum - 02-14-2010, 05:16 PM
Block GET Call to method - by El Forum - 02-14-2010, 08:46 PM
Block GET Call to method - by El Forum - 02-15-2010, 07:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB