in reply to why when I use html::form $input->name work,$input->value doesn't work ?

why the module html::form $input->name work,$input->value doesn't work"

Well, for starters, there is no such variable $input anywhere in your code

  • Comment on Re: why when I use html::form $input->name work,$input->value doesn't work ?

Replies are listed 'Best First'.
Re^2: why when I use html::form $input->name work,$input->value doesn't work ?
by fanasy (Sexton) on Nov 14, 2010 at 06:56 UTC
    Thanks for your replay the input is :
    my $CACTIURL = "http://www.xxx.com"; $mech->get($CACTIURL); $mech->set_visible("xxxxxx", $ADMINPASSWORD); $mech->click; my @inputs = $mech->current_form()->inputs(); foreach my $input2 (@inputs) { my $input_type= $input2->type; my $input_id= $input2->id; my $input_value= $input2->value; my $input_name= $input2->name;

      In what sense does it "not work"?

      Does your script crash? Does it return the wrong values?

      Note that WWW::Mechanize does not understand Javascript and the HTML input has an onclick attribute, which usually is connected to Javascript.

        thanks for your reply.
        Does perl have any module which can handle the javascript on html?
        the handle means I need to let the checkbox "on"by script.
        my question is print $input->value ,the result is "" .
        if javascript, does perl have any module can handle the javascript on html?
        thanks for your replay.