add enctypy
This commit is contained in:
parent
62e1e8f338
commit
ddb17cc473
@ -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'>";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user