RE: [PHP] How to submit form via PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, that was what I needed. Also I found this: http://curl.haxx.se/libcurl/php/examples/./simplepost.html. Is it somehow possible to retrieve result of that operation?

Thanks in advance.

Matěj "czech_d3v3l0pr" Grabovský


> ------------ Původní zpráva ------------
> Od: Warren Vail <warren@xxxxxxxxxxxx>
> Předmět: RE:  How to submit form via PHP
> Datum: 15.8.2008 21:04:12
> ----------------------------------------
> Key to this one may be understanding what is being asked.  I think pe.ve.ce
> performed a file read (file_get_contents) on the form from another website
> and wants to be able to simulate a browser submit from his code.
> 
> If this is correct, I would recommend you take a look at CURL.  There are
> probably several approaches that work, but as I understand that CURL is an
> implementation of the C libraries used by early browsers.  If that is not
> correct, someone here will set us straight.  Many ISP's won't support CURL,
> because it is often used for questionable activities and considered a
> security exposure, but I believe CURL is what you want.
> 
> Hth,
> 
> Warren Vail
> 
> > -----Original Message-----
> > From: Jay Blanchard [mailto:jblanchard@xxxxxxxxxx] 
> > Sent: Friday, August 15, 2008 11:31 AM
> > To: pe.ve.ce@xxxxxxxxx; php-general@xxxxxxxxxxxxx
> > Subject: RE:  How to submit form via PHP
> > 
> > [snip]
> > Hello. I'm pretty noob in PHP and would like to know how can 
> > I submit some HTML form got via file_get_contents(URL). For example:
> > 
> > <form name="someform" method="post">
> > <input type="submit">
> > </form>
> > 
> > so how can I submit 'someform' form.
> > 
> > Thanks in advance for any suggestions.
> > [/snip]
> > 
> > Click 'Submit'
> > 
> > 
> > 
> > Your form tag needs an action statement
> > 
> > <form name="someform" action="some.php" method="POST">
> > 
> > All of the form's variables will be available in the $_POST array
> > 
> > --
> > 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux