@@ -19,8 +19,17 @@ You can then install Form2email using the following command:
1919
2020~~~
21211. Create folder
22- 2. Create empty composer.json (if it doesn't exist)
23- 3. composer require justcoded/form-handler
22+ 2. Create composer.json file (if it doesn't exist) with json record:
23+
24+ {
25+ "require": {
26+ "monolog/monolog": "1.0.*"
27+ }
28+ }
29+
30+ 3. composer create-project
31+
32+ 4. composer require justcoded/form-handler
2433~~~
2534### 1.2 Install by download directly (alternative)
2635
@@ -35,8 +44,6 @@ cd form-handler
3544composer install
3645~~~
3746
38-
39-
4047## 2. Contact form
4148Create contact form with 'action' attribute where to send the form-data when a form is submitted. You can implement
4249multiple forms. You can find an example in the file examples/index.php
@@ -134,6 +141,7 @@ $message = [
134141 ])
135142];
136143```
144+
137145## 5. Template
138146You can customize the email templates. You can place the form fields anywhere. To do this, put the name of the form
139147field in curly braces. For example, in the file 'template-html.php':
@@ -160,7 +168,6 @@ field in curly braces. For example, in the file 'template-html.php':
160168
161169Creating another contact form
162170-----------------------------
163-
164171You must create a new folder in the root of the site and make the steps(2-5) described above again.
165172
166173Validation of text field generated automatically
@@ -185,8 +192,8 @@ $validation = [
185192 ]
186193];
187194```
188- ## 3. Template format:
189195
196+ ## 3. Template format:
190197In the template add name of generated form fields grouped by name. In our example the name is 'links':
191198``` html
192199...
0 commit comments