02-14-2010, 05:16 PM
[eluser]Ceros[/eluser]
Nevermind, I found this:
$_SERVER['REQUEST_METHOD']
Return GET or POST
so all you have to do is:
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
}