Topic: getFormValues not work in Linux hosting

Hello sorry for my terrible English.

On localhost, use xajax_ValidarForm (xajax.getFormValues ('formContacto'));

When I do:

ValidarForm function ($ form) {  
    $xr = new xajaxResponse ();  
    $ xr-> alert ("Form is a:". $ form);  
    return $ xr;
}

In windows environment + localhost

The answer is: The form is a: Array

But when I work on Linux + server hosting

The answer is: The form is a: {\ "name \": \ "\", \ "cognom1 \": \ "\", \ "cognom2 \": \ "\", \ "telefon \": \ "\", \ "email \": \ "\", \ "view \": \ "\"}

Why does this happen to me?

thanks

Re: getFormValues not work in Linux hosting

Had a similar problem with 0.6 on a Linux host. They were running PHP 5.2.x .

0.6 seems to need 5.3.x...

Ed

If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.

Re: getFormValues not work in Linux hosting

Hello ,

the problem came from the quoted input values via php.

The Explanation at http://php.net/manual/en/security.magic … bling.php.
Some Servers configured by default magic_quotes_gpc=On
In Xampp it is disabled by default.

so you do the following in your php.ini: magic_quotes_gpc=Off
Restart the server
recheck the inputs

Hope that helps

Re: getFormValues not work in Linux hosting

Greetings again to all, especially romacron,

Their response has been quite effective and has allowed me to fix the problem.

To do this, I added the following line to my .htaccess file

php_value magic_quotes_gpc off

And the magic came true

Many thanks for your input