Sending two dynamic arrays via post data, then reading
Posted: Wed Nov 23, 2005 12:09 am
Hi all, I have two arrays, one array contains dates and the other matching array contains info for each date.
ie:
What I have is a dynamic image (graph) that is being created (using JPGraph + GD) and the only way I can display the image is to call an external php file via the <img> tag. (If I use a function or do it inline it just bails due to headers already sent error).
Based on that I have to get the two arrays sent to the php file via post (or get) data.
Given that the two arrays can change their length dependant on a user form input, how can I send the data to the php file via the post data, then once I've done that, how can I get the data from the post data (remembering it could be any length) to use it?
Pretty tricky.
Any help appreciated,
Rob
ie:
Code: Select all
$date_range_array (contains X dates)
$client_info_array (contains info on each client for each of the dates in $date_range_array)Based on that I have to get the two arrays sent to the php file via post (or get) data.
Given that the two arrays can change their length dependant on a user form input, how can I send the data to the php file via the post data, then once I've done that, how can I get the data from the post data (remembering it could be any length) to use it?
Pretty tricky.
Any help appreciated,
Rob