Hi,

A PHP page (main.php) loads another page (doit.php) via a form. doit.php gets the data
via $_POST.

Now, from a third page (other.php), I need to load doit.php with other data, but
automatically, without a form.

How can I redirect to doit.php and send POST data at the same time ? (as if a form was
filled)

I tried the fsockopen method, described at e.g.
http://www.faqts.com/knowledge_base/view.phtml/aid/12039/fid/51, but it doesn't
redirect to a page, it just gets its output. It need something like header("Location:
doit.php") with POST data.

doit.php can't be modified. I can't use javascript.

What is the canonical way to do this in PHP ?

------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr 



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

Reply via email to