View unanswered posts | View active topics It is currently Mon Apr 29, 2024 3:17 pm



Reply to topic  [ 2 posts ] 
How to read form data for chart and show on form page 
Author Message
New pChart user
New pChart user

Joined: Tue May 14, 2013 2:43 pm
Posts: 1
 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? :roll: Thanks in advance.


Tue May 14, 2013 2:56 pm
Profile
pChart user
pChart user

Joined: Sun May 19, 2013 10:40 pm
Posts: 4
Post Re: How to read form data for chart and show on form page
Possible with some work.

So you need one file. It needs the HTML for the form. The form needs to be set to be processed by the same page when submitted. You need to test if the page was submitted, and if so then process the graph drawing. This covers most of it http://www.html-form-guide.com/php-form ... -self.html.


Mon May 20, 2013 10:59 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron