in reply to Re: how can i retrieve fields name from a form with mechanize
in thread how can i retrieve fields name from a form with mechanize

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^2: how can i retrieve fields name from a form with mechanize

Replies are listed 'Best First'.
Re^3: how can i retrieve fields name from a form with mechanize
by ikegami (Patriarch) on May 08, 2009 at 17:44 UTC
    Mechanize provides methods to fetch individual inputs.
      i have to retrieve 2 fields name from a form that contains lot of fields. i can retrieve all form fields name : my @inputsname = $forms->param; can you help me plz im blocked.
        Do you want me to pick two fields at random?
        use List::Util qw( shuffle ); my ($name1, $name2) = shuffle @inputsname;

        If not, you'll need to specify what's special about those two fields, what sets them apart.