Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change php variable using ajax

Status
Not open for further replies.

bezierstek

Programmer
Aug 30, 2007
43
FR
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.
 
Actually thinking about it I think I just need to get the value of both the menu and the radio group button when either of them have been changed. Can this be done? (I know this is purely javascript not ajax but as my post is here I thought I may as well leave it rather than start a new thread)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top