Using Ajax generated data in a form

Hello, working with Ajax (which I don’t appear to be really good at) to populate some <select> dynamically. So, I got it working (it’s country > region > city lists), when you pick a country next <select> will be populated with the different regions (or states) and when you pick a region, the last one will get populated with the cities.

So now, I want to send this form. But it appears that I can’t do it just like that. It doesn’t seem to send the <select> populated (getting an “undefined index” when I submit the form and try to echo each input).

So, does anyone know how I could work with this, because now I manage to write those Ajax functions, I’d be unhappy if I couldn’t use them…

Thanks.

You need to show the code. Asking theoretical questions about whats wrong with your code will only waste your own time and those reading this topic.

Please post your code in the relevant javascript/html forum if it is an ajax error. We can help you here in this one if it is a php problem but first you need to determine which language is at fault.