[PHPLIB] BUG 2- oohforms: default CHECKED & radio From: Bob Strouper (bobw123 <email protected>)
Date: 11/18/99

Hi,

Well, I finnally figured it out. ( the javascript problem
that is ). In of_radio.inc, in the function self_get_js(),
the $str is not being returned. Possibly at one time the
string was echo'ed and in the conversion to writing
it to $str the return was overlooked.

I still haven't figured out how to get the default value
as I mentioned before. I have found a workaround though.
If one values is left out, that value becomes the default...
not exactly what I was looking for though. What is the correct
way?

Thank you,
Bob

#########

Hello again,

I'm pulling my hair out now :-(

Now, I find ( no matter what combinations of radio elements
I use ) that can't get javascript to validate either. I am
including $f->start("jsname") , but it just prints out:
<!--
function theform_Validator(f) {
}
//-->

My javascript problems are on top of the issues below.
Please help! Please paste a working example.

Thank you,
Bob

phplib verion 7.2, php3.11

################

Hello,

How do I get one radio button in a group of radio buttons
to be checked?

I have:
...
$f->add_element(array("type"=>"radio","name"=>"myradio"));
...
$f->show_element("myradio", "yes");
$f->show_element("myradio", "no");
...

I would like to have the "'myradio', 'no'" element to
include CHECKED="true" by default. Is this possible?

Thank you,
Bob

__________________________________________________
FREE Email for ALL! Sign up at http://www.mail.com

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.