I made some PHP script with a form that contains dozen of text fields, some of them like text fields arrays, others as single text field. Part of these values I try to pass to another PHP script (pChart lib script) where I read them into variables and transform into arrays as chart input. pChart script then create chart as a PNG image on disk that I planned to show bellow form that supplied chart data. I have few problems:
- how to provide unique name for chart image to differentiate images of many users that run script at same time;
- how to fire pChart script in order to get chart and in same time show image bellow form with data?
My tries ended with empty form and chart image above it. Do I need session or some other "tricks"? Javascript is also welcome... Thank you.