Monks hello,
I've been trying to use the LWP module to automate POST. I've managed to get a response object and it looks like the POST has successed in writing the text I told it to into the proper fields. The problem is that it looks that all needs to be done now is to press the "Submit" button, which is a javascript submit function and i don't know how to interface with it. Looking at the HTML source I found that button and it looks like this

<tr style="padding-top:8px;padding-bottom:3px;"> <td colspan="3" style="padding +-right:155px;"> <a href="javascript:submitFina +l();"> <img src="images/buttons/b_sea +rch.gif" border=0></td> </a> </tr>

Looking at the start of HTML i found that function, which checks a few conditions and if those are OK it will return a new page, the part that returns a new page looks like this

document.forms.frmData.action="PhoneNumResults.asp" document.forms.frmData.submit();
The purpose of my program is to recieve that "PhoneNumResults.asp" and procces it.
Please help

20051020 Janitored by Corion: Added formatting


In reply to Trying to automate POST with LWP by andarian

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.