Re: cuRL script won't submit
| From: | Daniel Brown | Date: | Wed, 02 Apr 2008 14:26:33 +0000 |
| Subject: | Re: cuRL script won't submit | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-272445@lists.php.net to get a copy of this message | ||
On Wed, Apr 2, 2008 at 10:23 AM, Test User <usertest90@yahoo.com> wrote:
> many thanks.. I have been working on this for weeks!
> now I have to figure out how to extract that dynamic URL from the form before I post..
This may help to start:
<?php
$data = file_get_contents('http://www.website.com/html_form.html');
preg_match('/form action="(.*)"/Uis',$data,$matches);
print_r($matches);
?>
--
</Daniel P. Brown>
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Just ask!