The response will be a XML file PHP: you can easely use the "simplexml_load_file" function to tack back the result. JS: You also can use a javascript function with XMLHttpRequest() to proceed an AJAX calculation. In this case, please contact us to insert the IP adress of your serveur in our serveur script, otherwise the methode will not run
The Income Tax is on the filed < Result > --> <INCOMETAXE > You can tack it with Result[0]->INCOMETAXE Other parameter are given in response including error log So you can easily break you script in case of error
< FRAISREELS > < ERROR >NON </ERROR > < Result > < INCOMETAXE >7889.2 </INCOMETAXE> < TAX_RATE >0.157784 %</TAX_RATE> < /Result > <PARAM_ > < CUNTRY >FRANCE </CUNTRY> < INCOME >50000 </INCOME> < TAX_ALLOWANCE >5000 </ TAX_ALLOWANCE > < INCOME_after_TA >45000 < /INCOME_after_TA > < STATUS > SINGLE </STATUS > < CHILDREN /> < TAX_SHARE >1 </TAX_SHARE > < /PARAM_ > < /FRAISREELS >