http://qs1969.pair.com?node_id=894099

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

I'm designing a form filler for Wordpress and I'm using WWW::Mechanize to do the job. Does anyone know if hidden fields have to be filled in or does the form use them automatically with the module?

For example there is a Post_ID field with a number (this is a hidden field) and I need to know if I have to actually parse the HTML for the value and set the field myself OR is that already taken care of since it's built into the original form?


"Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

sulfericacid
  • Comment on WWW::Mechanize's affect on hidden fields

Replies are listed 'Best First'.
Re: WWW::Mechanize's affect on hidden fields
by Anonymous Monk on Mar 19, 2011 at 03:10 UTC
    Does anyone know if hidden fields have to be filled in or does the form use them automatically with the module?

    If you're selecting a form and then submitting it, hidden fields are sent, HTML::Form makes sure of that

    Every time I have a question like this, I write a program

Re: WWW::Mechanize's affect on hidden fields
by wind (Priest) on Mar 19, 2011 at 03:15 UTC

    It's already taken care of.

    WWW::Mechanize emulates the experience a human has when using a browser. Therefore, if a human doesn't have to deal with a hidden field on a browser, mech will be sure to take care of that too.

    -Miller