PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Nahid Bin Azhar  >  CS form validator  >  index.php  >  Download  
File: index.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: CS form validator
Validate submitted form values in multiple ways
Author: By
Last change:
Date: 6 years ago
Size: 611 bytes


Class file image Download
<form action="" method="post">
    <input type="text" name="email">
    <input type="text" name="website">
    <input type="text" name="dob">
    <input type="text" name="gender">
    <input type="submit" name="submit" value="Submit">


require_once "validator.php";


'url'=>'Sorry this not a valid url'

$valid=Validator::validate($_POST, $rules);

    foreach (
$valid->errorsAll() as $err) {

For more information send a message to info at phpclasses dot org.