PHP Classes

File: templates/form_frame.html.php

Recommend this page to a friend!
  Classes of Manuel Lemos   PHP Forms Class with HTML Generator and JavaScript Validation   templates/form_frame.html.php   Download  
File: templates/form_frame.html.php
Role: Auxiliary script
Content type: text/plain
Description: HTML template with embedded PHP to define the form frame
Class: PHP Forms Class with HTML Generator and JavaScript Validation
HTML forms generation and validation.
Author: By
Last change: Made the feedback div display centered text.
Date: 17 years ago
Size: 828 bytes


Class file image Download

 * There was a validation error. Display the error message associated with
 * the first field in error.
$active = 0;
$output = '<b>'.$error_message.'</b>';
$title_was = $title;
$title = "Validation error";
$title = $title_was;
$active = 1;
<div id="feedback" style="text-align: center;"></div>
<br />
<div id="wholeform">
<center><table summary="Form table" border="1" bgcolor="#c0c0c0" cellpadding="2" cellspacing="1">
<td bgcolor="#000080" style="border-style: none;"><font color="#ffffff"><b><?php echo $title; ?></b></font></td>

<td style="border-style: none;"><?php

     * Include the form body template