I have a PHP based application which calculates a final outcome based on the user inputs in several forms.
For simplicity, let’s say a user starts the application, on the next page he enters a value of 5, which is sent by _post to the next page, on the next page the user enters 2 and on the final page the outcome calculates 5*2= 10 (all the values are saved to _SESSION).
My question is whether there is a good script of how to manipulate this inputs on the FINAL page…let’s say in a way of sliders, that the user would be able to change the earlier given value of 5 to 10, and the script will recalculate the outcome to result in 10*2=20.
My final goal is to provide the users with a sort of a sensitivity analysis tools, so that they can change their already given inputs after seeing the outcome, and see how this change would change the given outcome.
Thanks a lot!
I asume you want to have a kind of interactive thingy, when the user moves the slider, then the result should change. You should use JavaScript for the calculation, and for the Sliders probably jQuery UI.