twistedsymphony Posted October 12, 2007 Share Posted October 12, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/72937-moving-data-from-a-javascript-form-for-use-in-php-gd/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.