Below is my textarea class. I want to make it sticky..help please.
I have the same problem with my drop down boxes (that post is still unanswered)
class Textarea extends TextBox
{
private $rows;
private $cols;
private $sub_head;
function __construct($n,$d=NULL)
{
$this->name=$n;
$this->default=$d;
}
function setHeight($h)
{
$this->rows=$h;
}
function setWidth($w)
{
$this->cols=$w;
}
function setSubHead($sh)
{
$this->sub_head=$sh;
}
function tooString()
{
$text="<tr><tr><td colspan='3'><b>".$this->sub_head."</b></td></tr>
<td colspan='4'><textarea name='".$this->name."' rows='".$this->rows."' cols='".$this->cols."'";
//The problem lies in the code below...I suppose
if(isset($_POST[$this->name])&($this->isSticky))
$text.="value='".$_POST[$this->name]."'";
else
$text.="value='".$this->default."'";
$text.="'/></textarea></td>
<td>".$this->description."</td>
</tr><tr><td></td></tr>";
return $text;
}
}
?>