Code works differently in different host: combo don't load.

rslyra 19 Sep, 2012
I hope that I had posted it at the right place.

I have two combo in a form, which I filled dynamically. In my home computer (localhost) work fine, but when I uploaded it to my host the combo don't get the value. Instead, go to the first of the list.

The list is:
City A
City B
City C
etc.

I selected B, for exemple, and it works fine, save it at the database. When I reopen the record, it shows me City A. Every time, every combo. Nuts!!

Now I will look carfully to the PHP.INI, looking for something diferent. MUST be the PHP, don't you agree??
GreyHead 19 Sep, 2012
Hi rslyra,

Impossible to tell from here - there are all sorts of things that it might be. What do you see if you check the from with your browser web developer tools? Are there any JavaScript errors? Can you see the correct data being passed back from the Ajax query?

Bob
rslyra 20 Sep, 2012
I find out that my PHP is 5.4.3, and at the hots is 5.2.17 (jan 2011).

Could this be a problem?
GreyHead 20 Sep, 2012
Hi rslyra,

Possibly, try setting Site Error Reporting temporarily to Maximum and see if you see any PHP errors on tht page or in the data returned from the Ajax query.

Bob
rslyra 20 Sep, 2012
SOLVED!!!!!!😀 😀 😀 😀 😀

I requested an upgrade of PHP. I left a server with version 5.2.17 to version 5.3.1. Running!!

How I changed my server, it is always possible that something else in the environment is responsible for making the form work. I had no access to PHP.INI, had to configure PHP via HTACCESS. So it may be that something else was interfering with the program.

but ...

I'm almost certain that this version change saved my day. 5.2.1 was January 2011, or close. It was old and had many bugs.

Thanks for your patience and attention.
This topic is locked and no more replies can be posted.