Jump to content

Recommended Posts

ok I'm building a browser app basically I've got a table full of data points (the number can vary anywhere from 5 points to 100+) then I've got a javascript function that analyzes that data and compiles an equation that can be used to create a quadratic regression plot. That's not really important though, just understand that I've got a lot of data of a dynamic quantity.

 

I've started creating another file using PHP GD that I intend to use to create a graph of this data.

 

Both sides of this application work great, the form page can run the calculation populate new fields and even save/recall data from the database.

 

The GD graphing portion graphs the data properly when it's manually set.

 

The problem is I don't know the best method to get the data from the javascript form into the php file that generates the graph.

 

I can think of a few possible methods but I none of them strike me as particularly efficient or best practice especially when you consider the amount of data I'm trying to grab and that the amount varies.

 

The key here is that the data is not coming from a database, the graph is to be used as a feedback tool so the user tweaks the data, checks the graph tweaks the data, check the graph etc. until they like what they see and then they save it to the database once they're done.

 

Any help/suggestions would be appreciated.  I'm still mostly a beginner when it comes to working with php/SQL/javascript and I've only just moved on from modifying other's applications to writing my own from scratch.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.