add enctypy

This commit is contained in:
Билай Станислав 2024-09-10 11:41:16 +03:00
parent 62e1e8f338
commit ddb17cc473

View File

@ -31,9 +31,9 @@ class ActiveForm
* @param string $action * @param string $action
* @return void * @return void
*/ */
public function beginForm(string $action): void public function beginForm(string $action, string $enctype = 'application/x-www-form-urlencoded'): void
{ {
echo "<form method='POST' action='$action'>"; echo "<form method='POST' action='$action' enctype='$enctype'>";
} }
/** /**