Login   Register  
PHP Classes

File: test_v2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of SaphirAngel  >  Input validation  >  test_v2.php  >  Download  
File: test_v2.php
Role: Example script
Content type: text/plain
Description: Unit test script
Class: Input validation
Validate request values of different types
Author: By
Last change:
Date: 2 years ago
Size: 1,031 bytes


Class file image Download
 * created by jetbrains phpstorm.
 * user: saphirangel
 * date: 18/10/12
 * time: 18:01
 * to change this template use file | settings | file templates.
include 'Request.php';
$post = new request('POST''default');


$count 100000;
while (
$count-- > 0) {
$message '';
    try {
        if (
$post['userUpdate_submit']) {
$login $post['user_login'];
$userKey $post['user_key'];
$message "DonnĂ©es valide";
    } catch (
Exception $exception) {
$message 'Les donnĂ©es ne sont pas corrects';


    <?php echo $message?>

<form action="test_v2.php" method="POST">
    <label for='user_login'>Identifiant : </label>
    <input id="user_login" name="user_login" type="text" value=""/>
    <input id="user_key" name="user_key" type="hidden" value="20"/>
    <input id="userUpdate_submit" type="submit" name="userUpdate_submit" value="envoyer"/>