PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Ashish Vishwakarma   Text Box Validation   test.php   Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Example File
Class: Text Box Validation
Generate forms with text field validation
Author: By
Last change:
Date: 18 years ago
Size: 717 bytes
 

Contents

Class file image Download
<?
   
include("cmd.php");
   
$test=new Validation;
?>
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table border="1" cellspacing="0" cellpadding="2">
<?
   
print $test->startForm("frmRegistration","test.php","post","yes"); //startForm("formName","Action","Method","Valid(yes/no)");
   
print "<tr><td>".$test->getTextBox("Name","yes")."</tr></td>";
    print
"<tr><td>".$test->getPassword("Password","yes")."</tr></td>";
    print
"<tr><td>".$test->getTextBox("Address","yes")."</tr></td>";
    print
"<tr><td>".$test->getSubmit("Save")."</tr></td>";
    print
$test->endForm();
    print
$test->getValidCode();
?>
</table>
</body>
</html>