Comments (3)
Sounds like a good idea. Some of the finer details may be a challenge to
integrate into class.form.php though.
How would js/php error checking work with the modularized form elements? Which
of the current elements
would be considered standard?
- Andrew
Original comment by [email protected]
on 20 May 2010 at 1:54
from php-form-builder-class.
Perhaps all elements should be modularized, since there isn't really any
benefit to
having some of them hard-coded in the class.
There could be two different ways they could specify how the element will be
checked,
a simple way where they can just set a single regex or a more complex way where
they
could specify a function for checking the input.
The form class will then use that regex/function to decide it the input is
valid, and
then create then handle creating the js/php validation checking and error
message output.
I'm imagining there will be a folder in includes/ called "modules" and inside
multiple files.. textbox.php captcha.php googlemap.php etc
Inside each will be a standardized structure, (element object?) , and it will
set a
few variables such as:
htmloutput
jsoutput
validation
and others that will be obvious when we actually implement it.
I think before we start to try and implement this we should create an element
with a
good structure, and afterwards actually convert the current elements to that
structure and make the form class handle it.
Original comment by [email protected]
on 21 May 2010 at 4:57
from php-form-builder-class.
Many of the ideas brought up in this issue thread are included in the 2.x
branch. I'm calling this issue closed.
Original comment by [email protected]
on 14 May 2011 at 3:25
- Changed state: Fixed
from php-form-builder-class.
Related Issues (20)
- Default value for a radio button HOT 2
- add custom ajax
- Submitting Obejcts as JSON strings instead of traditional POST
- Error Submit Ajax form
- Form Builder Class Submit Button - No Value HOT 8
- Multiple Select - Multiple values not showing as pre-selected HOT 1
- Update to Bootstrap 3 HOT 4
- Doesn't update if Google Spreadsheet Column Name is a Number
- send and receive data to-from mysql db
- javascript load multiple times in pfbc(PHP Form Builder Class - Imavex) HOT 1
- Element Select and text value
- Radio buttons HOT 2
- Bootstrap 3 support
- Nginx ajax file upload error HOT 1
- How to add selected="selected" on Select with PFBC 3.1? HOT 3
- How to compare two elements's values (e.g. password / password new)
- How to compare user entered element value with DB content?
- accentuation on the placeholder
- Custom CSS
- Having a multiple default in a Multiple Select
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-form-builder-class.