Hello,
On 09/05/2004 06:12 PM, Matthew Nicoll wrote:
> I was hoping I could mess with the values of <input type="hidden"...>
> form variables after the submit button is clicked and before the form
> action was invoked, by having the form action invoke an intermediary
> php script. I don't fancy diving into HTTP protocol handlers just
> now!
If you want to alter the submitted form values, just change the $_POST
array values in the beggining of the script you want to alter.
If you want to alter the values and submit them another page, you may
want to try this HTTP client class. It lets you emulate form post
submission at will, including uploading files if necessary:
http://www.phpclasses.org/httpclient
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html