
Wah Y Lam - 2007-10-02 12:18:36 -
In reply to message 11 from Manuel Lemos
I want to understand how this data retriving works.
In the documentation (forms.html), there is an example:
$checked=$my_form_object->GetCheckedState($input)
I don't really understand the $input argument. I had tried putting the $input, as in the example above,and also the "NAME" or the "ID" of my fields, but I could not print out the validated value.
Here were what I did.
In the section of (indicated in test_form.php example):
if($doit)
{
$form->ReadOnly=1;
}
Instead of putting $form->ReadOnly=1;
I put in: (for a name field)
$value=$form->GetInputValue('user_name');
print $value;
I put in: (for checkbox field)
$checked=$form->GetCheckedState('operation_type')
print $checked;
I was not able to print out these validated values.
Please kindly explain further on retreving the these validated values.
Thanks
Ben