POST without a form
| From: | arthur.chereau | Date: | Fri, 31 Jan 2003 00:28:30 +0000 |
| Subject: | POST without a form | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-133715@lists.php.net to get a copy of this message | ||
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