Re: [PHP] DOM TextArea (and dom chart please)

[email protected] (Ryan S)
Newsgroups php.general
Message-ID <[email protected]>


> I think what you are looking for is $input2->textContent in PHP.

Hey Andrew (and everyone else was was kind enough to write back) !

Found the solution, this is what i am using (and it works!), and i hope it helps anyone else who finds themselves in the spot i found myself

$inputs2 = $dom->getElementsByTagName('textarea'); // Find textareas  
foreach ($inputs2 as $input2) { 
        if(!$input2->nodeValue || $input2->nodeValue=="") { 
                $input2->nodeValue="it works!"; 
        } 
} 


Cheers guys!
/R
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.