Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

WWW::Mechanize's affect on hidden fields

by sulfericacid (Deacon)
on Mar 19, 2011 at 02:54 UTC ( #894099=perlquestion: print w/ replies, xml ) Need Help??
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
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://894099]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-09-20 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls