> I want to make sure the user selects a radio button and at least one
> checkbox. Can this be done?
Well, I guess it should be.
Why not checking the overall validity as defined during form creation and
in a next step veryfing these additional dependencies like:
---
if (isset($foo)) // Is there data to process?
{
if ($f->validate()) { // Is the data valid?
echo '<H2>Input errors found!</H2>'; // No
echo '<B>Check entries marked!</B></FONT>';
$foo=trim($foo);
$float=trim($float);
$f->load_defaults(); // Load form with submitted data
} else {
// hey, data is valid here!
// check here if your dependencies are correct
if (dependencies == false)
{
echo '<B>Dependencies not correct!</B>'
$f->load_defaults() // and we're out again
}
else
{
// here we have done everything right
}
}
---
Well, I did not test the details, but I guess that's how it should work in
your case.
What do you think?
Keep me posted about progress.
Regards,
Marko
|