<?php $p = (double) $_POST['p']; $i = $_POST['i']; $n = (int) $_POST['n']; $t = $_POST['t']; $a = (int) $_POST['a']; $i = (double) str_replace(',', '.', $i); require 'startzend.php'; $client = new Zend_Soap_Client('http://localhost/xmlgenerator/remote1.php?wsdl'); $m = $client->calculaMontante($p, $i, $n, $a); $l = $m - $p; //formata��o $l = str_replace('.', ',', $l); $p = str_replace('.', ',', $p); $i = str_replace('.', ',', $i * 100); $m = str_replace('.', ',', $m); $mensagem = "Um capital de R\$ {$p}, aplicado a uma taxa de juros de {$i}%, durante {$n} {$t} render� R\$ {$l}"; ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <?php echo $mensagem; ?> <br> <a href="xml26.php">Retornar</a>