<?
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>
|