bezierstek
Programmer
Hi all,
I need to change the value of a variable in the main php script I have based on the choice that is made in a list menu and then also update the figure displayed on screen.
What I have at the moment passes the variable to a secondary php script which does some maths depending on the choice made, but doesn't pass this back into the main script.
Am I trying to make things hard for myself by using Ajax when I should be thinking of a different way to approach this.
I need to change the value of a variable in the main php script I have based on the choice that is made in a list menu and then also update the figure displayed on screen.
What I have at the moment passes the variable to a secondary php script which does some maths depending on the choice made, but doesn't pass this back into the main script.
Am I trying to make things hard for myself by using Ajax when I should be thinking of a different way to approach this.