[prev in list] [next in list] [prev in thread] [next in thread] 

List:       phplib
Subject:    [phplib] patch of_text.inc
From:       "Hellekin O. Wolf" <hellekin () mmania ! com>
Date:       2000-07-28 14:27:02
[Download RAW message or body]

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@lists.netuse.de
For additional commands, e-mail: phplib-help@lists.netuse.de

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic