-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme.txt
92 lines (66 loc) · 2.69 KB
/
Readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
████████████████████████████████████████████
█─▄▄▄▄███████▄─▄▄─█─▄▄─█▄─▄▄▀█▄─▀█▀─▄█─▄▄▄▄█
█▄▄▄▄─████████─▄███─██─██─▄─▄██─█▄█─██▄▄▄▄─█
▀▄▄▄▄▄▀▀▀▀▀▀▀▄▄▄▀▀▀▄▄▄▄▀▄▄▀▄▄▀▄▄▄▀▄▄▄▀▄▄▄▄▄▀
S_FORMS is a form generator.
Author: Cerlincă Ștefan
Year: 2021
Version: 1.0
To use this patch simply follow this steps:
1. Clone the git in your web page folder
2. Include this code in your web page, in head section:
<?php include "s_forms/s_forms.php"?>
3. Configure Settings from s_forms folder of s_forms_conf.php file
4. Write your html message to send. (In Mailer folder in MailerPages)
4. Create the form as in the attached example
- label and placeholder of a field are optional.
- required are optional.(If this field are set, the form generate an error).
{
"type": "text",
"name": "name",
"value": "",
"placeholder": "Numele tău",
"label" : "this is a label",
"class": "",
"required": "Necesar"
}
Here the filed have a label, a placeholder and show an error if this
field are not complete.
This code can also be type without label and placeholder and required
{
"type": "text",
"name": "name",
"value": "",
"class": "",
}
Hare this code don't generate an error
- name from JSON must be uniqe.
- textarea doesn't have type property in JSON code, only input have type json property.
{
"tag": "textarea",
"name": "descriere",
"value": "",
"placeholder": "Descrie proiectul tău aici.",
"class": "",
"required": "Necesar"
}
- if you want to put a field into a div, or more fields you must put in json vector two matriceal
elements, fist must be "class" and the second, the name of the class as in the example:
[
"class",
"name_of_the_class",
{
"label": "Creare Site Web",
"type": "checkbox",
"name": "ch_creareSite",
"value": "checked",
"class": ""
},
{
"label": "Conținut / Copyright",
"type": "checkbox",
"name": "ch_copyright",
"value": "checked",
"class": ""
}
]