We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9328f82 commit 49a0f80Copy full SHA for 49a0f80
Resources/views/Form/form_start.html.php
@@ -1,6 +1,6 @@
1
<?php $method = strtoupper($method) ?>
2
<?php $form_method = $method === 'GET' || $method === 'POST' ? $method : 'POST' ?>
3
-<form method="<?php echo strtolower($form_method) ?>" action="<?php echo $action ?>"<?php foreach ($attr as $k => $v) { printf(' %s="%s"', $view->escape($k), $view->escape($v)); } ?><?php if ($multipart): ?> enctype="multipart/form-data"<?php endif ?>>
+<form name="<?php echo $form->vars['name'] ?>" method="<?php echo strtolower($form_method) ?>" action="<?php echo $action ?>"<?php foreach ($attr as $k => $v) { printf(' %s="%s"', $view->escape($k), $view->escape($v)); } ?><?php if ($multipart): ?> enctype="multipart/form-data"<?php endif ?>>
4
<?php if ($form_method !== $method): ?>
5
<input type="hidden" name="_method" value="<?php echo $method ?>" />
6
<?php endif ?>
0 commit comments