Tony,
            Thanks.  I have to log in with username/password, and I think I 
know how to do that with wget using POST.  For the actual search page, the HTML 
source says it`s: 

<form action="full_search.php" method="POST">

However, I`m not clear on how to convey the data for the search.  

The search for has defined a table.  One of the entries, for example, is:

    <tr>
      <td><b><font face="Arial">Search by Country:</font></b></td>
      <td><input type="text" name="country" size="50" maxlength="100"></td>
    </tr>

If I want to use wget to search for entries in the U.S. ("US"), then how do I 
convey this when I post to the php?

                                        Thanks, Alan 
  ----- Original Message ----- 
  From: Tony Lewis 
  To: 'Alan Thomas' ; wget@sunsite.dk 
  Sent: Thursday, February 22, 2007 12:53 AM
  Subject: RE: php form


  Look for <form action="some-web-page" method="XXX" ...>

  action tells you where the form fields are sent.

  method tells you if the server is expecting the data to be sent using a GET 
or POST command; GET is the default. In the case of GET, the arguments go into 
the URL. If method is POST, follow the instructions in the manual.

  Hope that helps.

  Tony


------------------------------------------------------------------------------
  From: Alan Thomas [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, February 21, 2007 4:39 PM
  To: wget@sunsite.dk
  Subject: php form


          There is a database on a web server (to which I have access) that is 
accessible via username/password.  The only way for users to access the 
database is to use a form with search criteria and then press a button that 
starts a php script that produces a web page with the results of the search.

          I have a couple of questions:

  1.  Is there any easy way to know exactly what commands are behind the 
button, to duplicate them?

  2.  If so, then do I just use the POST command as described in the manual, 
after logging in (per the manual), to get the data it provides.  

          I have used wget just a little, but I am completely new to php.  

                                                              Thanks, Alan


Reply via email to