in reply to WWW::Mechanize:field not submitted

What version of WWW::Mechanize did you use? Can you show your HTML code?

Replies are listed 'Best First'.
Re^2: WWW::Mechanize:field not submitted
by Yappo (Novice) on Mar 11, 2009 at 03:34 UTC
    Version is 1.34
    use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get("$mydomain/post.php"); $mech->form_number(2); $mech->field("headline","MyHeadline"); $mech->field("thecontent","MyContent"); $mech->field("categories[some_tag]","Blah"); $mech->click("publish");
      HTML code is too large. Line in question is:
      <input type="text" name="categories[some_tag]" class="categories form- +input-tip" size="16" value="Add Word" />