We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26dcea3 commit 55c7aacCopy full SHA for 55c7aac
2 files changed
examples/index.php
@@ -123,7 +123,7 @@ function print_errors($errors) {
123
Mail send.
124
</div>
125
<?php endif; ?>
126
- <form action="advanced.php" method="post">
+ <form action="advanced.php" method="post" enctype="multipart/form-data">
127
<div class="form-group">
128
<label for="adv-name">Name</label>
129
<input type="text" name="name" class="form-control" id="adv-name" placeholder="Name">
src/FormHandler.php
@@ -124,7 +124,7 @@ public function getValidator($data)
public function process()
{
$this->handler->process($this->formFields);
- $this->errors = array($this->handler->getErrors());
+ $this->errors = $this->handler->getErrors();
}
130
/**
0 commit comments