gotornot Posted March 10, 2010 Share Posted March 10, 2010 Hi I am collecting data from the page before using $_REQUEST i need to process the data and send it to another URL in a post string. however i need to collect the data and assemble it together would i use an array to do this? i am already using a string replace to do the standard data ie: http://www.yoursite.co.uk/script.php?name={name}&email={email} And heres where it gets complicated i need to loop through all the other fields and add them to the end of the above url do i add them to an array: $extraq = array(SOMETHING HERE); Or is there an easier way? Link to comment https://forums.phpfreaks.com/topic/194748-to-array-or-not-to-array-that-is-the-question/ Share on other sites More sharing options...
teamatomic Posted March 10, 2010 Share Posted March 10, 2010 Just base64-serialize the array and pass it along. $url_data=base64_encode(serialize($data)); then at the other end: unserialize(base64_decode( $_GET["url_data"])) HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/194748-to-array-or-not-to-array-that-is-the-question/#findComment-1024127 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.