PHP Classes

File: templates/form_ajax_body.html.php

Recommend this page to a friend!
  Classes of Manuel Lemos   PHP Forms Class with HTML Generator and JavaScript Validation   templates/form_ajax_body.html.php   Download  
File: templates/form_ajax_body.html.php
Role: Auxiliary script
Content type: text/plain
Description: HTML template with embedded PHP to define the form body for the AJAX submit example
Class: PHP Forms Class with HTML Generator and JavaScript Validation
HTML forms generation and validation.
Author: By
Last change: Adjusted the template to render the description and file inputs.
Date: 18 years ago
Size: 671 bytes
 

Contents

Class file image Download
<center><table summary="Input fields table">

<tr>
<th align="right"><?php $form->AddLabelPart(array("FOR"=>"description")); ?>:</th>
<td><?php $form->AddInputPart("description"); ?></td>
<?php
   
if(IsSet($verify["description"]))
    {
?>
<td>[Verify]</td>
<?php
   
}
?>
</tr>

<tr>
<th align="right"><?php $form->AddLabelPart(array("FOR"=>"file")); ?>:</th>
<td><?php $form->AddInputPart("file"); ?></td>
<?php
   
if(IsSet($verify["file"]))
    {
?>
<td>[Verify]</td>
<?php
   
}
?>
</tr>

<?php
   
if(!$doit)
    {
?>
<tr>
<td colspan="3" align="center"><hr /></td>
</tr>

<tr>
<td colspan="3" align="center"><?php $form->AddInputPart("doit"); ?></td>
</tr>
<?php
   
}
?>
</table></center>