PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
calmness
Forum Newbie
Posts: 6 Joined: Fri May 23, 2003 8:51 am
Location: Kiev, Ukraine
Contact:
Post
by calmness » Mon Jun 02, 2003 4:07 am
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)?
[]InTeR[]
Forum Regular
Posts: 416 Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands
Post
by []InTeR[] » Mon Jun 02, 2003 4:13 am
Maybe with header("Location: test.php?foo=bar"); ?
Or is that not the type of solution u need.
calmness
Forum Newbie
Posts: 6 Joined: Fri May 23, 2003 8:51 am
Location: Kiev, Ukraine
Contact:
Post
by calmness » Mon Jun 02, 2003 4:39 am
No, I don't need the GET passing.
I search the way to pass exactly by POST method, if it is possible ofcourse.
[]InTeR[]
Forum Regular
Posts: 416 Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands
Post
by []InTeR[] » Mon Jun 02, 2003 4:45 am
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"] ?
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Mon Jun 02, 2003 8:12 am
take a look at
http://snoopy.sf.net
maybe it's useful for you.
calmness
Forum Newbie
Posts: 6 Joined: Fri May 23, 2003 8:51 am
Location: Kiev, Ukraine
Contact:
Post
by calmness » Mon Jun 02, 2003 8:35 am
Unfortunately these scripts (to which I pass the data) located on another server and the way with $_SESSION is not usable.
hedge
Forum Contributor
Posts: 234 Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada
Post
by hedge » Mon Jun 02, 2003 9:20 am
At the bottom of this link is some code I came up with
viewtopic.php?t=7063
calmness
Forum Newbie
Posts: 6 Joined: Fri May 23, 2003 8:51 am
Location: Kiev, Ukraine
Contact:
Post
by calmness » Mon Jun 02, 2003 11:08 am
Thanks a lot!
It seems to me this is what I looked for.
I'll try to do so.