diff --git a/system/form.php b/system/form.php index 5d3c9d53..85335d38 100644 --- a/system/form.php +++ b/system/form.php @@ -25,6 +25,11 @@ public static function open($action = null, $method = 'POST', $attributes = arra } $attributes['action'] = HTML::entities(URL::to($action)); + + // ------------------------------------------------------- + // If the request method is PUT or DELETE, we'll default + // the request method to POST. + // ------------------------------------------------------- $attributes['method'] = ($method == 'GET' or $method == 'POST') ? $method : 'POST'; // -------------------------------------------------------