From 6d296f2a1dd0402f85e8eb6bbcef9e2755c8b791 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 7 Jul 2011 23:42:11 -0500 Subject: [PATCH] added comment to file class. --- system/form.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/form.php b/system/form.php index 1b6017a9..e7b99a27 100644 --- a/system/form.php +++ b/system/form.php @@ -34,6 +34,9 @@ public static function open($action = null, $method = 'POST', $attributes = arra // If the request method is PUT or DELETE, create a hidden input element with the // request method in it since HTML forms do not support these two methods. + // + // The Request class will check for this hidden POST element when determining the + // request method. If it is present, it will override the real request method. if ($method == 'PUT' or $method == 'DELETE') { $html .= PHP_EOL.static::input('hidden', 'REQUEST_METHOD', $method);