I'm using WWW::Mechanize to enter data into a web page. How can I find out the name of the for and the name of the buttons? Any help would be appreciated, thanks. Here is the (slightly modidified to protect the site) HTML.
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-12 +52"> <meta http-equiv="Content-Language" content="en-us"> <title>The Submission Form</title> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <base href="http://www.somewebsite.com/subdir/post.htm"><meta name="Mi +crosoft Theme" content="safari-color-change 100, default"></head> <body bgcolor="#000000" text="#CCCC99" link="#FFFF00" vlink="#FF0000" +alink="#FFFFFF"><!--mstheme--><font face="trebuchet ms, arial, helvet +ica"> <p> </p> <h1><!--mstheme--><font color="#CCCC66">The Place<!--mstheme--></font> +</h1> <p> [ <a href="index.htm" target="_top">Contents</a> | <a href="post.htm" target="_top">Post</a> ] </p> <!--msthemeseparator--><p align="center"><img src="_themes/safari-colo +r-change/safsepd.gif" width="600" height="10"></p> <h3><!--mstheme--><font color="#CC6600"><tt>POST ARTICLE</tt><!--msthe +me--></font></h3> <form method="POST" action="_vti_bin/shtml.exe/post.htm?68" webbot-act +ion="--WEBBOT-SELF--"> <input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"> <p> <strong>Subject:</strong><br> <input type="TEXT" name="Subject" size="50" value="Re: test2"> <br +> <strong>Comments:</strong><br> <textarea name="Comments" rows="6" cols="50"></textarea> <br> <br> <input type="SUBMIT" value="Post Article"> <input type="RESET" val +ue="Reset Form"> </p> </form> <!--msthemeseparator--><p align="center"><img src="_themes/safari-colo +r-change/safsepd.gif" width="600" height="10"></p> <h5><!--mstheme--><font color="#CC9933">Last changed: October 08, 2003 <!--mstheme--></font></body> </html>

In reply to WWW::Mechanize & HTML by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.