[phplib] patch of_text.inc From: Hellekin O. Wolf (hellekin <email protected>)
Date: 07/28/00

Hello,

following my previous post about oohforms,
I fixed my problem by changing the self_get_frozen() method in
of_text.inc

The $val variable passed as the first parameter was not taken into
account !
Moreover, the string returned was included in a table.
It now returns the hidden field + the raw value, letting you take care
of how it is displayed.

This applies to phplib7.2b

Enjoy,

hellekin.

function self_get_frozen($val,$which, &$count) {
        // I didn't test this part, as the element should be
        // a "text" element, hence a string...
        if (is_array($val))
                $val = $val[$which];

        $n = $this->name . ($this->multiple ? "[]" : "");

        $str = "<input type='hidden' name='$n' value='$val'>\n $val\n";

        $count = 1;
        return $str;
}

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>