|
From: Thomas <th...@fr...> - 2004-04-16 20:57:41
|
Hi Marcus,
I'm still having problem with the lack of documentation, the doc doesn't=20
explain how to set a non multiple value check box (I have looked through =
the=20
code too! ) :
Spamassassin enabled ? <input name=3D"spamassassin" type=3D"checkbox"=20
class=3D"textfield">
I have tried this :
$this->setField('spamassassin', 'checked');
$this->setField('spamassassin', true);
It doesn't check.
Thanks for your help
Le Vendredi 16 Avril 2004 03:08, Marcus Baker a =E9crit :
> Hi...
>
> Thomas Carri=E9 wrote:
> > PS : why does getBrowser returns TestBrowser according to the phpdoc
>
> whereas
>
> > there is only a SimpleBrowser class in the phpdoc and no TestBrowser=
?
>
> Because the code docs are often done by me and I keep getting things
> wrong :). I'll fix the code now...
>
> > According to
>
> http://www.lastcraft.com/form_testing_documentation.php#multiple
>
> > I have done this :
> >
> > $this->setField('confirm', array('value' =3D> '1'));
>
> That is for selection fields and check boxes that can have multiple
> values. As radio groups can only have one value at a time you can go...
>
> $this->setField('confirm', 1);
>
> yours, Marcus
--=20
Thomas Carri=E9
Identit=E9 GPG : 0285ED14
http://www.adullact.org/IMG/pdf/doc-157.pdf
http://www.lebars.org/sec/tcpa-faq.fr.html
http://www.pimientolinux.com/peru2ms/villanueva_to_ms.html
http://petition.eurolinux.org/pr/fr/pr17.html
http://aful.org/publi/articles/gilmore-copy-protection.html
|