PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have made a drop down in my form but I have bumped a small problem. I am wishing to show 'shipping costs' for each individual 'state' which is chosen (Australian states) and I thought of the idea where the page is refreshed after a state is chosen in order for the correct shipping costs to be shown. The best example I can give is when you sign up for an account (eg, hotmail) and after choosing an appropiate state the zip/postalcode changes automatically.
Sorry if this is a bad explination but it is the best I can do.
there are 2 ways I can think of doing this: either submit the form as a partial, so all the challenge is on the form processor knowing it's partial (you can use hidden fields).. or you could store the shipping costs inside the select's values, and alter the page code via innerHTML/innerText and change the value of a hidden field (maybe)