Re: php form

2007-02-24 Thread Alan Thomas
I see now that I should not have had the single quotes (') around 
country=US.
  - Original Message - 
  From: Tony Lewis 
  To: 'Alan Thomas' ; wget@sunsite.dk 
  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  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; wget@sunsite.dk
  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: 

  

  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:

  
Search by Country:

  

  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 

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




Re: php form

2007-02-23 Thread Alan Thomas
Tony,
After logging in (saving the cookies), following your instructions 
and the manual, I used the following commands:  

wget --load-cookies cookies.txt --post-data 'country=US' 
http://www.xxx.yyy/search/full_search.php

The data was not filtered using county=US, but rather all of the 
data without that filter (from all countries) came back.  Also, this data was 
in a .php file.  

Do you know what I am doing wrong?Thanks, Alan 

- Original Message - 
From: Tony Lewis 
To: 'Alan Thomas' ; wget@sunsite.dk 
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  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; wget@sunsite.dk
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: 



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:


  Search by Country:
  


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 

  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




Re: php form

2007-02-23 Thread Alan Thomas
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' ; wget@sunsite.dk 
  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  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; wget@sunsite.dk
  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: 

  

  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:

  
Search by Country:

  

  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 

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




RE: php form

2007-02-22 Thread Tony Lewis
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
 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; wget@sunsite.dk
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: 
 

 
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:
 

  Search by Country:
  

 
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 <mailto:[EMAIL PROTECTED]>  
To: 'Alan Thomas' <mailto:[EMAIL PROTECTED]>  ; wget@sunsite.dk 
Sent: Thursday, February 22, 2007 12:53 AM
Subject: RE: php form

Look for 
 
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
 
 
 



Re: php form

2007-02-22 Thread Alan Thomas
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: 



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:


  Search by Country:
  


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 

  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




RE: php form

2007-02-21 Thread Tony Lewis
Look for 
 
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