How to read form data for chart and show on form page
I'm familiar with custom re-design of examples in pChart and until now I made few chart without error but all these chart had data inside chart script, inside line
Code:
$MyData->addPoints(10,20,30,40,"ScoreA");
but I need to use it together with html form filled by user and based on submitted data to show chart bellow form with data. I tried it many times but no result. After submit form I have read form's text field values in chart's script and made an array of them and I used it as
Code:
$MyData->addPoints($formArray,"ScoreA");
and it works but I got chart in separate tab, window but I need it, as I stated, bellow form that gave data for chart. Is it possible to achieve?
Thanks in advance.