Tony,
            One last question: How do you know where the data returned from the 
search is stored?

            Thank you.   Your responses have cleared up a lot for me.  Now I 
understand the manual better.

                                                                Alan 
  ----- Original Message ----- 
  From: Tony Lewis 
  To: 'Alan Thomas' ; [email protected] 
  Sent: Thursday, February 22, 2007 8:59 PM
  Subject: RE: php form


  The table stuff just affects what's shown on the user's screen. It's the 
input field that affects what goes to the server; in this case, that's <input 
... name="country" ...> so you want to post country=US. If there were multiple 
fields, you would separate them with ampersands such as country=US&state=CA.

  Tony


------------------------------------------------------------------------------
  From: Alan Thomas [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, February 22, 2007 5:27 PM
  To: Tony Lewis; [email protected]
  Subject: Re: php form


  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' ; [email protected] 
    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: [email protected]
    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