Forms and Validation

Forms and Validation

[ad_1]

To get this product on 50 p.c low cost contact me on this link

 

LIVE PREVIEWBUY FOR $6

Usage of “Forms and Validation”

The creation of HTML-forms is a time consuming tquestion. Also the creation of validation guidelines must be carried out and is at all times fairly related and nonetheless must be examined intensively. The PHP class “Forms and Validation” can cut back the required time to create enter varieties in your web site to a minimal. In addition there are numerous validation guidelines included to make your life simpler.
I created some examples to point out you the way straightforward you need to use this PHP class (click on on “live preview” so see them). You can attempt each instance by your individual to get an feeling for the ability of the creation and validation capabilities and this class. Also you’ll be able to instantly see the used supply code to spice up your studying curve of this class features. In the top there’s a full listing of the general public features of this class.
I hope this class saves you numerous time so you’ll be able to concentrate on the actual difficult programming tquestions.

Integration

The set up of “Forms and Validation” class could be very easy and saves you numerous time. Just observe the next set up steps and you will note how straightforward it’s to create varieties and validate them.

  1. Copy the php and css file to any location of your webspace (e.g. to the listing /fav)
  2. Make positive that you need to use classes within the goal file: “session_start();”
  3. Initialise the category: “require_once(‘formsAndValidation_class.php’);”
  4. You are prepared to start out… (finest can be to start out with one of many examples from the README)
  5. Adapt the css file to your want.
  6. Have enjoyable, save numerous time and give me ranking on code canyon )” title=” :)” />

Features

  • Super straightforward to combine (embrace one file and you might be 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 “Form and Validation”

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

Functions to outline the eneral settings of the category:

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

Functions 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 )
  • presentForm ( [ string $submit = ‘send’ ] )

Functions to validate the shape:

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

Functions to cope with the errors:

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

Please assist me

If you’re going to fee 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 options on how I may enhance the script, depart me a remark or ship me an electronic mail and your suggestion would possibly make it in to a future model!

[ad_2]

To get this product on 50 p.c low cost contact me on this link

 

Source

Pomento
Logo
Register New Account
Compare items
  • Total (0)
Compare
0
Shopping cart