DESCONTO DE 20% PARA PAGAMENTO POR DEPOSITO!
Inicio » codecanyon » Script PHP » Forms and Validation

Forms and Validation Original


Forms and Validation
ESCOLHA UMA DAS FORMAS DE PAGAMENTO ABAIXO



Usage of “Forms e Validation”

The creation of HTML-forms é um time consuming task. Also the creation of validation rules has to be done e é always quite similar e still has to be tested intensively. The PHP class “Forms e Validation” can reduce the necessary time to create input forms on your website to um minimum. In addition there are um lot of validation rules included to make your life easier.
I created some examples to show you how facil you can use este PHP class (click on “live preview” so see them). You can try every example by your own to get an feeling parum the power of the creation e validation capabilities e este class. Also you can directly see the used source code to boost your learning curve of este class functions. In the end there é um complete list of the public functions of este class.
I hope este class saves you um lot of time so you can focus on the real challenging programming tasks.

Integration

The Instalaration of “Forms e Validation” class é very Simples e saves you um lot of time. Just follow the following Instalaration steps e you will see how facil it é to create forms e validate them.
  1. Copy the php e css file to any location of your webspace (e.g. to the directory /fav)
  2. Make sure that you can use sessions in the target file: “session_start();”
  3. Initialise the class: “require_once(‘formsAndValidation_class.php’);”
  4. You are ready to start… (melhor would be to start with one of the examples from the README)
  5. Adapt the css file to your need.
  6. Have fun, save um lot of time e give me um good rating on code canyon :-)

Características

  • Super facil to integrate (include one file e you are ready to go)
  • create all html form types with one line of code
  • multiple pre-defined validations included
  • define own validations or use regular expression
  • change the css file to create um new look of the form

Public functions of the “Form e Validation”

por favorclick on live demo to get an explanation parum all functions…

Functions to define the eneral settings of the class:
  • setTarget( string $target )
  • setMethod( string $method )
  • setShowErrorsOnForm( bool )
  • setShowErrorsOnTop( bool )
  • loadVariables( array $keyAndVariables )
  • setLoadDatepicker( bool )

Functions to create the form:
  • addTextInput( string $label, string $name [, string $value = ’’, array $attributes = array(), string $addtext = ’’] )
  • addPassword( string $label, string $name [, string $value = ’’, array $attributes = array(), string $addtext = ’’] )
  • addUpload( string $label, string $name [, string $value = ’’, array $attributes = array(), string $addtext = ’’] )
  • addHiddenInput( string $label [, string $name = ’’] )
  • addTextarea( string $label, string $name [, string $value = ’’, array $attributes = array(), string $addtext = ’’, int $rows = 4, int $cols = 20] )
  • addSelectList( string $label, string $name [, array $option_list = array(), array $attributes = array()] )
  • addRadioButton( string $label, string $name [, array $option_list = array(), array $attributes = array()] )
  • addCheckboxes( string $label, string $name [, array $option_list = array(), array $attributes = array()] )
  • addDefaultValue ( string $name, string $value )
  • addCode ( string $name [, string $location = ’’] )
  • addTitle ( string $text )
  • addHeadline ( string $text )
  • addParagraph ( string $text )
  • showForm ( [ string $submit = ‘send’ ] )

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

Functions to deal with the errors:
  • isError ()
  • getErrorCount ()
  • getErrorList ()
  • showSuccess ( string $headline [, string $text = ’’] )
  • resetErrorList ()

por favorhelp me

If you are going to rate the script less than 5 stars, por favortell me what I can do to make it 5 stars parum you e I will fix it. I would love to hear your suggestions on how I could improve the script, leave me um comment or send me an email e your suggestion might make it in to um future version!
Avaliação 4.67
Vendas 76
Preço R$ 28.24
Autor christophdb
Licença codecanyon
Categoria Script PHP

Criado em
18 de Janeiro de 2013

Última Atualização em
10 de Março de 2013

Compra Direto por ID
Pesquisa
Central de Clientes

Novo Painel Hospetec



Ou Registre-se

Acesso ao antigo Painel

  • WooCommerce TAG
  • Prestashop TAG
  • Mais Ecommerce TAG
  • Script PHP Populares Pesquisa
  • Wordpress Populares Pesquisa
  • Rede Social Categoria
  • Igrejas TAG
  • Promoções 37
  •  

    Autores

     

    Destaque