[PHP] PHP script that fills forms ?

2003-11-26 Thread Anonymous
I was just wondering if it's possible to get a PHP script to fill a form for
you? You see, I'm trying to make PHP fetch a password protected website for
me and there's a form with username and password that protects it.

Can anyone help me? Perhaps give me another sollution?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Sophie Mattoug
Anonymous wrote:

I was just wondering if it's possible to get a PHP script to fill a form for
you? You see, I'm trying to make PHP fetch a password protected website for
me and there's a form with username and password that protects it.
Can anyone help me? Perhaps give me another sollution?
 

echo 'input type=text name=name value=' . $value . ';

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Anonymous
Well, you see. I didn't mean it that way. I meant PHP to fetch a website.
The website is password protected and you need to fill a form to access it.
So I would like PHP to fill that form for me. Would that be possible? Are
there any other solutions?

Sophie Mattoug [EMAIL PROTECTED] skrev i melding
news:[EMAIL PROTECTED]
 Anonymous wrote:

 I was just wondering if it's possible to get a PHP script to fill a form
for
 you? You see, I'm trying to make PHP fetch a password protected website
for
 me and there's a form with username and password that protects it.
 
 Can anyone help me? Perhaps give me another sollution?
 
 

 echo 'input type=text name=name value=' . $value . ';

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Nathan Taylor
You're not making any sense my friend. If you want to fill form field then supply them 
with a value= value.  There's nothing more to it.
  - Original Message - 
  From: Anonymous 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, November 26, 2003 5:37 AM
  Subject: Re: [PHP] PHP script that fills forms ?


  Well, you see. I didn't mean it that way. I meant PHP to fetch a website.
  The website is password protected and you need to fill a form to access it.
  So I would like PHP to fill that form for me. Would that be possible? Are
  there any other solutions?

  Sophie Mattoug [EMAIL PROTECTED] skrev i melding
  news:[EMAIL PROTECTED]
   Anonymous wrote:
  
   I was just wondering if it's possible to get a PHP script to fill a form
  for
   you? You see, I'm trying to make PHP fetch a password protected website
  for
   me and there's a form with username and password that protects it.
   
   Can anyone help me? Perhaps give me another sollution?
   
   
  
   echo 'input type=text name=name value=' . $value . ';

  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Sophie Mattoug
form-filling is client-side, php is server-side = i don't see any 
solution for your problem...

Anonymous wrote:

Well, you see. I didn't mean it that way. I meant PHP to fetch a website.
The website is password protected and you need to fill a form to access it.
So I would like PHP to fill that form for me. Would that be possible? Are
there any other solutions?
Sophie Mattoug [EMAIL PROTECTED] skrev i melding
news:[EMAIL PROTECTED]
 

Anonymous wrote:

   

I was just wondering if it's possible to get a PHP script to fill a form
 

for
 

you? You see, I'm trying to make PHP fetch a password protected website
 

for
 

me and there's a form with username and password that protects it.

Can anyone help me? Perhaps give me another sollution?

 

echo 'input type=text name=name value=' . $value . ';
   

 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] PHP script that fills forms ?

2003-11-26 Thread Nigel Jones
If it's protected by the PHP Auth or htaccess I think you can pass User/Pass
via the headers

Anyone know for sure?



_
Nigel Jones
[EMAIL PROTECTED]


 -Original Message-
 From: Anonymous [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 26, 2003 11:38 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP script that fills forms ?


 Well, you see. I didn't mean it that way. I meant PHP to fetch a website.
 The website is password protected and you need to fill a form to
 access it.
 So I would like PHP to fill that form for me. Would that be possible? Are
 there any other solutions?

 Sophie Mattoug [EMAIL PROTECTED] skrev i melding
 news:[EMAIL PROTECTED]
  Anonymous wrote:
 
  I was just wondering if it's possible to get a PHP script to
 fill a form
 for
  you? You see, I'm trying to make PHP fetch a password
 protected website
 for
  me and there's a form with username and password that protects it.
  
  Can anyone help me? Perhaps give me another sollution?
  
  
 
  echo 'input type=text name=name value=' . $value . ';

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Justin French
On Wednesday, November 26, 2003, at 09:48  PM, Nathan Taylor wrote:

You're not making any sense my friend. If you want to fill form field 
then supply them
with a value= value.  There's nothing more to it.
he wants PHP to act as a 'user at a keyboard and mouse', entering 
values into a form, which of course can't be done, but my other post on 
this topic offeres alternatives.

Justin French

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] PHP script that fills forms ?

2003-11-26 Thread Jay Blanchard
[snip]
I was just wondering if it's possible to get a PHP script to fill a form
for
you? You see, I'm trying to make PHP fetch a password protected website
for
me and there's a form with username and password that protects it.

Can anyone help me? Perhaps give me another sollution?
[/snip]

Use cURL http://www.php.net/curl

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Justin French
On Wednesday, November 26, 2003, at 09:14  AM, Anonymous wrote:

I was just wondering if it's possible to get a PHP script to fill a  
form for
you? You see, I'm trying to make PHP fetch a password protected  
website for
me and there's a form with username and password that protects it.

Can anyone help me? Perhaps give me another sollution?
It depends how the site at the other end works, and how securely  
they've set everything up.

If the form's action is 'get' rather than 'post', then you can simply  
copy the URL format (eg login.php?u=fredp=secret) and submit directly  
to that script (bypassing the form).  For example, I can take a query  
like posting to a form with PHP, and write a google URL like  
http://www.google.com/search?q=posting+to+a+form+with+PHPie=UTF- 
8oe=UTF-8 ,which WILL work.

If it's 'post' rather than 'get', then I think there's some Pear  
classes that can POST data to a URL, and I think there's also some  
classes on phpclasses.org my Manuel Lemmos that do this too.

Not easy, but (AFAIK), achievable.
You might get caught out with what the next script does though...  
sessions and cookies may still prevent you from getting where you need  
to go, but that's not what you asked :)

Justin French

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Prashant

 Dear Mr Justin

 There are some queries regarding PHP 4.1.As you mentioned in php 4.1
 register_globals=off. are set for security reasons.

 Is it Required to have Form attribute  as enctype=multipart/form-data if
 i  have a File Upload on the Particular Form.

 form name=form1 action=test.php3 method=Post
 enctype=multipart/form-data
 i.e input type=file name=filename

 I am Facing a Problem as when i am removing the enctype attribute in Form
 object, i am able to pass form values data  from one form to another form
i.e the destination form will able to
 retrieve  the form values, but from the source form when i keep the enctype
attribute
 in the source form object, i am unable to pass the values i.e the
destination form is unable to retrieve
 the values passed from source form.

 Second Problem is I am unable to retrieve the image name using
 $_FILES['filename']['name']; in the Destination form.
 The source form has the file upload html tag

 form name=form1 action=test.php3 method=Post
 enctype=multipart/form-data
 i.e input type=file name=filename
 input type=submit value=submit

 Awaiting Your Prompt Reply,

 Thanks  Regards,
 Prashant S Akerkar

- Original Message -
From: Justin French [EMAIL PROTECTED]
To: Nathan Taylor [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; Anonymous [EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 6:18 PM
Subject: Re: [PHP] PHP script that fills forms ?


 On Wednesday, November 26, 2003, at 09:48  PM, Nathan Taylor wrote:

  You're not making any sense my friend. If you want to fill form field
  then supply them
  with a value= value.  There's nothing more to it.

 he wants PHP to act as a 'user at a keyboard and mouse', entering
 values into a form, which of course can't be done, but my other post on
 this topic offeres alternatives.

 Justin French

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Anonymous
OK then. Thanks for your answers.
But is there another way that I could make PHP fetch info from a password
protected website?

Justin French [EMAIL PROTECTED] skrev i melding
news:[EMAIL PROTECTED]
 On Wednesday, November 26, 2003, at 09:48  PM, Nathan Taylor wrote:

  You're not making any sense my friend. If you want to fill form field
  then supply them
  with a value= value.  There's nothing more to it.

 he wants PHP to act as a 'user at a keyboard and mouse', entering
 values into a form, which of course can't be done, but my other post on
 this topic offeres alternatives.

 Justin French

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP script that fills forms ?

2003-11-26 Thread Anonymous
Oops. Nevermind that last message. I didn't read all the messages in the
topic.

Anonymous [EMAIL PROTECTED] skrev i melding
news:[EMAIL PROTECTED]
 OK then. Thanks for your answers.
 But is there another way that I could make PHP fetch info from a password
 protected website?

 Justin French [EMAIL PROTECTED] skrev i melding
 news:[EMAIL PROTECTED]
  On Wednesday, November 26, 2003, at 09:48  PM, Nathan Taylor wrote:
 
   You're not making any sense my friend. If you want to fill form field
   then supply them
   with a value= value.  There's nothing more to it.
 
  he wants PHP to act as a 'user at a keyboard and mouse', entering
  values into a form, which of course can't be done, but my other post on
  this topic offeres alternatives.
 
  Justin French

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php