Andrea Bartolini - 2013-10-25 10:19:41
There are some error that make me unable to load a value from a table in an input field.
<?php
include_once ('class.forms.php');
$form = new buildForm();
$form->database = array('table' => 'ordinit', 'where' => 'otID=1');
if($_POST) { echo $form->processSubmitted($_POST, $_FILES); }
$form->text(array('name' => 'otFaRagSoc','size' => '20', 'validate' => 'Please enter your name','value' => '[sql]', 'html' => 'style="font-size: 0.9em;"'));
$form->action = 'post';
$form->method = 'saved.php';
$form->validate = true;
$form->submit(array('value' => 'Submit Contact Form', 'html' => 'style="font: bold 12pt Tahoma;"'));
$form->open();
?>