3
Hey,
Thanks for the reply.
I changed the code to this:
class XoopsFormRadioYN extends XoopsFormRadio
{
/**
* Constructor
*
* @param string $caption
* @param string $name
* @param string $value Pre-selected value, can be "0" (No) or "1" (Yes)
* @param string $yes String for "Yes"
* @param string $no String for "No"
*/
function XoopsFormRadioYN($caption, $name, $value=1, $yes=_YES, $no=_NO)
{
$this->XoopsFormRadio($caption, $name, $value);
$this->addOption(1, $yes);
$this->addOption(0, $no);
}
}
?>
Is this right? Because I uploaded the file and it still defaults to no in the register.php
Thanks