Forms and Validation Download

DOWNLOAD/LIVE PREVIEW

Forms and Validation Download

Utilization of “Kinds and Validation”

The creation of HTML-forms is a time consuming job. Additionally the creation of validation guidelines needs to be performed and is all the time fairly related and nonetheless needs to be examined intensively. The PHP class “Kinds and Validation” can cut back the mandatory time to create enter kinds in your web site to a minimal. As well as there are quite a lot of validation guidelines included to make your life simpler.
I created some examples to indicate you the way simple you should use this PHP class (click on on “stay preview” so see them). You may strive each instance by your personal to get an feeling for the facility of the creation and validation capabilities and this class. Additionally you may immediately see the used supply code to spice up your studying curve of this class features. In the long run there’s a full listing of the general public features of this class.
I hope this class saves you quite a lot of time so you may give attention to the actual difficult programming duties.

Integration

The set up of “Kinds and Validation” class may be very easy and saves you quite a lot of time. Simply comply with the next set up steps and you will notice how simple it’s to create kinds and validate them.

  1. Copy the php and css file to any location of your webspace (e.g. to the listing /fav)
  2. Just remember to can use periods within the goal file: “session_start();”
  3. Initialise the category: “require_once(‘formsAndValidation_class.php’);”
  4. You’re prepared to begin… (greatest can be to begin with one of many examples from the README)
  5. Adapt the css file to your want.
  6. Have enjoyable, save quite a lot of time and provides me a great score on code canyon Forms and Validation Download )” title=” :)” />

Options

  • Tremendous simple to combine (embrace one file and you’re able to go)
  • create all html kind sorts with one line of code
  • a number of pre-defined validations included
  • outline personal validations or use common expression
  • change the css file to create a brand new look of the shape

Public features of the “Kind and Validation”

please click on on stay demo to get an evidence for all features…

Features to outline the eneral settings of the category:

  • setTarget( string $goal )
  • setMethod( string $methodology )
  • setShowErrorsOnForm( bool )
  • setShowErrorsOnTop( bool )
  • loadVariables( array $keyAndVariables )
  • setLoadDatepicker( bool )

Features to create the shape:

  • addTextInput( string $label, string $title [, string $value = ’’, array $attributes = array(), string $addtext = ’’] )
  • addPassword( string $label, string $title [, string $value = ’’, array $attributes = array(), string $addtext = ’’] )
  • addUpload( string $label, string $title [, string $value = ’’, array $attributes = array(), string $addtext = ’’] )
  • addHiddenInput( string $label [, string $name = ’’] )
  • addTextarea( string $label, string $title [, string $value = ’’, array $attributes = array(), string $addtext = ’’, int $rows = 4, int $cols = 20] )
  • addSelectList( string $label, string $title [, array $option_list = array(), array $attributes = array()] )
  • addRadioButton( string $label, string $title [, array $option_list = array(), array $attributes = array()] )
  • addCheckboxes( string $label, string $title [, array $option_list = array(), array $attributes = array()] )
  • addDefaultValue ( string $title, string $worth )
  • addCode ( string $title [, string $location = ’’] )
  • addTitle ( string $textual content )
  • addHeadline ( string $textual content )
  • addParagraph ( string $textual content )
  • showForm ( [ string $submit = ‘send’ ] )

Features to validate the shape:

  • save2Session ()
  • cleanSession ( [ string $formID = ‘fav’ ] )
  • isEmpty ( string $subject, string $error_msg [, int $minChars = 3 ] )
  • isInteger ( string $subject, string $error_msg )
  • isDecimal ( string $subject, string $error_msg )
  • isWithinRange ( string $subject, string $error_msg, int $min, int $max )
  • isEmailAddress ( string $subject, string $error_msg )
  • isSelected ( string $subject, string $error_msg )
  • isFile ( string $subject, string $error_msg )
  • isFileType( string $subject, string $error_msg, array $allowed_file_types )
  • isFileSizeGreaterThan( string $subject, string $error_msg, int $dimension )
  • isFileSizeSmallerThan( string $subject, string $error_msg, int $dimension )
  • isValidDate ( string $subject, string $error_msg [, string $format = ‘mdY’, string $sep = ’/’ ] )
  • isFutureDate ( string $subject, string $error_msg [, string $format = ‘mdY’, string $sep = ’/’ ] )
  • checkWithRegExpression ( string $subject, string $error_msg, string $regExp )
  • checkWithOwnValidation ( array $field_names, string $error_msg, string $validation )
  • checkReload ( string $error_msg )
  • AddError ( string $error_msg )

Features to cope with the errors:

  • isError ()
  • getErrorCount ()
  • getErrorList ()
  • showSuccess ( string $headline [, string $text = ’’] )
  • resetErrorList ()

Please assist me

If you’ll price the script lower than 5 stars, please inform me what I can do to make it 5 stars for you and I’ll repair it. I’d love to listen to your solutions on how I might enhance the script, depart me a remark or ship me an electronic mail and your suggestion may make it in to a future model!

DOWNLOAD/LIVE PREVIEW
Source

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.