send variable question......How....???

oliverzimmerman's Avatar, Join Date: Apr 2008
Newbie Member
Hi experts....

How can I send variables from a PHP script to another URL using POST without using forms and hidden variables?

many thanks for any reply.....
0
pete_bisby's Avatar, Join Date: Nov 2007
Go4Expert Member
.... you can't.

The whole point of populating the POST array is via a HTML form submission, whether the inputs are enter via a user or pre-populated when they are hidden.

You can either place information within the SESSION array, making the information available later on in another PHP script/page, or by using JavaScript/AJAX and posting the information dynamically.