Re: Post but not Post

From: Date: Wed, 28 Mar 2001 23:12:39 +0000
Subject: Re: Post but not Post
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45886@lists.php.net to get a copy of this message
Maxim, I just want them to be passed same as if passed via a <form> with a POST method. can i simulate the POST? Like i tried to put then in the $HTTP_POST_VARS[] but ofcourse, won't be for any good, unless...hmm... i never tried it though, and i have no good knowledge about it, but here's my idea: ususaly, we use Header() to go to another page, what if by this header() i compose the whole header string including the post variables to be posted to the second page, and the do Header("Location: newloc.php") ? Theorically, this should work, but i have no idea how the header that have the posted variables is composed.... If any one can help I would appreciate that. -elias "Maxim Maletsky" <maxim.maletsky@japaninc.net> wrote in message news:DC017B079D81D411998C009027B7112A015ED021@EXC-TYO-01... > no other way. > > Unless you identify the user somehow VERY WELL, write the staff into the > file, and then read the file on other page. > > But, basically - the values are being passed with - urls, forms, cookies, > sessions (still cookies or urls). No other ways are out there. > > Let me know if you'll find a SECURE one :-) > > Cheers, > Maxim Maletsky > > > > -----Original Message----- > From: elias [mailto:elias_bachaalany@yahoo.com] > Sent: Thursday, March 29, 2001 4:25 AM > To: php-general@lists.php.net > Subject: [PHP] Post but not Post > > > Hello. > > we all know that we can send variables to another PHP file via <form> tag > and with post method. > now i wonder if i can send variables from a script to another like POST > method but not using form tags. > like my question is how can i transfer data from form to form like the POST > of the <form> tag, but w/o session variables or cookies, or url parameters > (like the GET method), and w/o forms ofcourse? > > Currently, i'm doing this via hidden forms and automatic posting via > JavaScript, but is there is any clean and better way? > > Thanks. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#45886) next »