adamcrussell has asked for the wisdom of the Perl Monks concerning the following question:

I use HTML::form in an attempt to create a form object which I intend to populate and submit via LWP. How do I access "textarea" s wthin a form? Simple inputs can be accessed via something like $form->value($name,$value); however if I try this with a textarea I get a "no such input" error. Can anyone shine some light on this for me? Any help is appreciated.

Replies are listed 'Best First'.
Re: accessing a textarea via HTML::Form
by Beatnik (Parson) on Mar 31, 2001 at 17:35 UTC
    try
    $form->push_input("textarea",{"name"=>"texta","value"=>"test"}); $input = $form->find_input("texta","textarea"); print $input->name(); print $input->value();
    or
    $form->push_input("textarea",{"name"=>"texta"}); $input = $form->find_input("texta","textarea"); $input->value("test"); print $input->name(); print $input->value();

    Greetz
    Beatnik
    ... Quidquid perl dictum sit, altum viditur.