Hi,
I'm just trying my hand at using Pear and Quickform package tools. Unfortunatly it seems I've a major problem with the validation.
If for example I try this simple example from a tutorial :
"<?php
require_once "HTML/QuickForm.php";
$form = new HTML_QuickForm('frmTest', 'get');
$form->addElement('header', 'hdrQuickformtest',
'QuickForm Example 2');
$form->addElement('text', 'txtName',
'What is your name?');
$form->addElement('reset', 'btnClear',
'Clear');
$form->addElement('submit', 'btnSubmit',
'Submit');
if ($form->validate()) {
# If the form validates then freeze the data
$form->freeze();
}
$form->display();
?>
"
The form validate even if I don't submit any data. How comes ?
I'm working on WinXP or 2000, with Wamp, PHP5 and Quickform 3[1].2.4pl1.
Could that be a configuration problem ? What else could be wrong ??
Other "POST" forms, more complex ones too, also fail.
Thanks