Good morning,
I am new to the forum I use PHPR for 2 years and I am not really good in coding even if PHPR is super convenient. Can you help me please ?
I use a Webservice to check if a VAT id is correct the answer is in this form
[indent]
I would like to use in variables included [] for a processing.
Here is the code
[indent]
[color="#0000ff"]$vatid = 'FR89380129866'; // replace for the VAT-ID you would like to check
[color="#0000ff"]$cc = substr($vatid, 0, 2);
[color="#0000ff"]$client = new SoapClient("http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl");
[color="#0000ff"]{
[color="#0000ff"]try
[color="#0000ff"]$r = $client->checkVat($params);
[color="#0000ff"]
[color="#0000ff"] {
[color="#0000ff"]
[color="#0000ff"]echo "<BR>".$k . ': ' . $value;
[color="#0000ff"]
[color="#0000ff"]// VAT-ID is NOT valid
[color="#0000ff"]}
[color="#0000ff"]} catch(SoapFault $e) {
[color="#0000ff"]}
[color="#0000ff"]// Connection to host not possible, europe.eu down?
[color="#0000ff"]
[color="#0000ff"]// Use "Add Action" button to add code snippets.
[/b][/i]
[/indent]
And I do not manage to enter these variables as in the application Euro2016
Can anyone help me please.
Djamel