Login   Register  
PHP Classes
elePHPant
Icontem

File: test_paranoia.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ovidiu EFTIMIE  >  Paranoia  >  test_paranoia.php  >  Download  
File: test_paranoia.php
Role: ???
Content type: text/plain
Description: Testing page for paranoia class
Class: Paranoia
Check the validity of submitted form parameters
Author: By
Last change:
Date: 2000-11-03 03:54
Size: 744 bytes
 

Contents

Class file image Download
<?php
/****************************************************************
*Author: Ovidiu EFTIMIE
*Copyright :Ovidiu EFTIMIE
*Last modified:Friday, November 03, 2000 10:49:57 AM
*Description : Test page for paranoia .php
*****************************************************************/
require_once("paranoia.php");
if(isset($HTTP_POST_VARS)&&!empty($HTTP_POST_VARS)){
$par=new paranoia($HTTP_POST_VARS);
if(!empty($par->wrongParams)){
//	$par->sendBack();
	echo "Incorrect parameters";
}else{
	echo "Corect parameters";
}
}
?>
<html>
<head><title>Test page for paranoia</title></head>
<form action="test_paranoia.php" method="POST">
	<input type="text" name="test">
	<input type="submit" value="Test">
</form>
</html>