From: "John Nichel" <[EMAIL PROTECTED]>:
> > You can use cURL or one of the PEAR classes to have your PHP script fill
> > out the form on the remote computer... will take some work, but it's
> > possible.
> >
> > Actually, you could just simulate a POST / GET request to the file that
> > handles the form processing instead of actually attempting to fill out
> > the form. Again, cURL and some PEAR classes will help here.
>
> But the OP would still have to have access to at least the HTML of the
other
> form right?  cURL can't fill out form on another site if the HTML isn't
set
> up to do it, can it?
>
> like :
> <input type="text" name="foo" />
> vs.
> <input type="text" name="foo" value="<?php echo ( $foo ); ?>" />

You'd have to know what elements are in the form. You wouldn't actually fill
out the form, just create the appropriate request to the page that does the
form processing. As simple as a URL if it's method is "get" or using
cURL/PEAR classes/contexts to create the "post" request.

---John Holmes...

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

Reply via email to