PHP Classes

File: example_form.json

Recommend this page to a friend!
  Classes of Arash Soleimani   PHP JSON Form Builder   example_form.json   Download  
File: example_form.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP JSON Form Builder
Generate a HTML form definition in JSON format
Author: By
Last change: Update README
Date: 4 years ago
Size: 1,259 bytes
 

Contents

Class file image Download
{ "name": "formName", "title": "A registration form", "description": "A simple form example.", "method": "post", "enctype": "multipart/form-data", "action": "http://leomoon.com", "properties": { "firstName": { "type": "input", "title": "First name", "name":"firstName", "value": "test", "required": true, "onChange":"console.log(this.value)" }, "lastName": { "type": "input", "title": "Last name", "name":"lastName", "disabled": true }, "age": { "type": "number", "title": "Age", "name":"age" }, "bio": { "type": "input", "title": "Bio", "name":"bio", "placeholder":"Biography" }, "password": { "type": "password", "title": "Password", "name":"password", "min": 3 }, "language": { "type": "select", "title": "Language", "name":"lang", "options": {"en":"English", "fa":"Farsi", "de":"German" } }, "submit": { "type": "submit", "title": "Save Form", "name":"submit" } } }