Dear All,

I am very new to LWP but need it to extract text from
some website. I am reading "Perl & LWP" by Sean Burke.


What I am trying to do is very similar to the
ABEBooks.com example in Burke (p.74): use the POST
method to submit some parameters to a form and save
the response to a local file. As done in the example,
I first got the name-value pairs of the form. The
problem I have is that I don't know how to submit the
form. In the webpage, there are two buttons "Search"
and "Clear Form", but I can't find the pair of name
and value for submission. In the source code, the two
buttons are represented by two images:
"search_gray.gif" and "clearform_gray.gif", below is
the part of the source code I guess is relavent.  




                  <SCRIPT language=JavaScript 
                 
src="LN_page_files/form_js_utils.v1.js" 
                  type=text/javascript>
</SCRIPT>
                  <INPUT name=formSubmit type=hidden>
<INPUT name=imageSubmit 
                  type=hidden> <A 
                 
href="http://web.lexis-nexis.com/universe/form/academic/";

                 
onclick="submitForm(document.forms[0],'Search');return
false;"><IMG 
                  alt=Search border=0 height=20 
                  src="LN_page_files/search_gray.gif"
width=58></A>&nbsp;&nbsp; 
                  <A
href="http://web.lexis-nexis.com/universe/form/academic/";

                 
onclick="submitForm(document.forms[0],'Clear
Form');return false;"><IMG 
                  alt="Clear Form" border=0 height=19 
                 
src="LN_page_files/clearform_gray.gif" width=82></A>
&nbsp; 
                  </P></DIV></TD></TR></TBODY></TABLE>
            <DIV align=center>
            <CENTER>


Could anyone please tell me how to put the submission
in my perl codes?

Thank a lot!
Wendy



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Reply via email to