PHP PROJECT

README.md

Ajax validate and display forms with Bootstrap

Simple & easy, This class can compose, ajax validate and display forms with Bootstrap. It can compose and display forms with common fields using Bootstrap to render the forms using a given template in HTML. The class can also validate the submitted form values according to given validation rules.

Files


NameTypeSizeLast Modified
verify_js.php phpfile icon 1233 26 June 2017 00:39:21

Source

Demo

You can find a demo available here: Ajax form

Requirment

  • mySql
  • PHP >= 5.4
  • Apache Server

Contribute

  • Vishv Sahdev

Example

  1. <?
  2. include_once "class/valid.php";
  3. $valid=new validation;
  4. $output['maincontent']=$valid->render_temp("temp/temp.php");
  5. $formID="#contactForm";
  6. $buttonID="#send_message";
  7. $url="http://localhost/ajax_form_validate/ajax.php";
  8. $output['script']=$valid->render_temp("js/verify_js.php",array("buttonID"=>$buttonID,"url"=>$url,"formID"=>$formID));
  9. echo $valid->render_temp("temp/main.php", array("output"=>$output));

>>

Download