Project

General

Profile

Statistics
| Branch: | Revision:

colonymech / docs / www / colonyscout / internal / jeditable / tests / method.php @ f59acf11

History | View | Annotate | Download (184 Bytes)

1
<?php
2

    
3
if (count($_POST)) {
4
    if (isset($_POST["_method"]) && "put" == $_POST["_method"]) {
5
        print "PUT";
6
    } else {
7
        print "POST";
8
    }
9
} else {
10
    print "GET";
11
}