Page 1 of 1
Is it possible to POST data from PHP scripts?
Posted: Mon Jun 02, 2003 4:07 am
by calmness
I need to pass data to several scripts in the Internet by method POST. The data for fields is retreived from the database and this operation must repeat several times. Is it possible to do from PHP code (without generating HTML forms)?
Posted: Mon Jun 02, 2003 4:13 am
by []InTeR[]
Maybe with header("Location: test.php?foo=bar"); ?
Or is that not the type of solution u need.
Posted: Mon Jun 02, 2003 4:39 am
by calmness
No, I don't need the GET passing.
I search the way to pass exactly by POST method, if it is possible ofcourse.
Posted: Mon Jun 02, 2003 4:45 am
by []InTeR[]
And parsing the $_POST variables into a session?
Code: Select all
session_start();
if(isset($_POST)){
$_SESSION["post"] = $_POST
}
And then acces the $_POST with $_SESSION["post"] ?
Posted: Mon Jun 02, 2003 8:12 am
by volka
take a look at
http://snoopy.sf.net
maybe it's useful for you.
Posted: Mon Jun 02, 2003 8:35 am
by calmness
Unfortunately these scripts (to which I pass the data) located on another server and the way with $_SESSION is not usable.
Posted: Mon Jun 02, 2003 9:20 am
by hedge
At the bottom of this link is some code I came up with
viewtopic.php?t=7063
Posted: Mon Jun 02, 2003 11:08 am
by calmness
Thanks a lot!
It seems to me this is what I looked for.
I'll try to do so.