• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.