Login   Register  
PHP Classes
elePHPant
Icontem

File: templates/form_ajax_body.html.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Manuel Lemos  >  Forms generation and 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: Forms generation and validation
HTML forms generation and validation.
Author: By
Last change: Adjusted the template to render the description and file inputs.
Date: 8 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>