I have inherited a php site, which I'll admit is not something I know much about.
I can understand most of what is present, but I have been asked if I can put a drop down list in with different countries in it (Done that bit).
Now, on selecting a country and pressing an ok button, I need to navigate to a different page which is specific to the selected country.
Is that something that can be done in the PHP Page (i.e. Post back to it's self, look to see if a value has been selected from the drop down list, if it has then work out the url and redirect, if not show an error message)
or should I be looking to do this client side with javascript ?
My instinct tells me its the firsto option I need, but before I spend too much time on this I want to make sure Im right.
Any hints on how to do it, if Im right / wrong, or other better suggestions are more than welcome
K
I can understand most of what is present, but I have been asked if I can put a drop down list in with different countries in it (Done that bit).
Now, on selecting a country and pressing an ok button, I need to navigate to a different page which is specific to the selected country.
Is that something that can be done in the PHP Page (i.e. Post back to it's self, look to see if a value has been selected from the drop down list, if it has then work out the url and redirect, if not show an error message)
or should I be looking to do this client side with javascript ?
My instinct tells me its the firsto option I need, but before I spend too much time on this I want to make sure Im right.
Any hints on how to do it, if Im right / wrong, or other better suggestions are more than welcome
K