[ajuda] inserir texto em php :/

Boas estou com um erro bastante simples, mas que não consigo resolver, então é o seguinte:
Queria que o texto inserido no test4.php, aparecesse no campo username do ws2.php

Test4

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<form action= "ws2.php" method="post">
<input type="text" name="textfield" />
<input type="submit" value="enviar" />
<body>

</body>
</html>


ws2

Código:
<?php


// Include the SOAP classes
require_once('nusoap/lib/nusoap.php');


// Specify the Hi-Media client account
$idcliente="dmc"; 
$password="dmc"; 
$origem="teste da responsabilidade de Duarte Bugas"; //For your reference, you can write anything you want (for further information check other Hi-Media documentation)
$valor="13.65"; 
$informacao=$text4['textfield'];
                    
$IDUserBackoffice="-1";



// Specify the webservice information
$action='http://hm.comprafacil.pt/SIBSClick/webservice/SaveCompraToBDValor1';
//$action='http://mobileware.telemoveis.com/SIBSClick/webservice/SaveCompraToBDValor_op1';

$serverpath ='http://hm.comprafacil.pt/SIBSClick/webservice/clicksmsV4.asmx';
//http://mobileware.telemoveis.com/SIBSClickTeste/webservice/clicksmsV2.asmx;

$client = new soapclient($serverpath);

// Check for errors and output them
$err = $client->getError();
if ($err) {
    echo '<p>Constructor error</p><pre>' . $err . '</pre>';
}

// Compose the SOAP message
$msg=$client->serializeEnvelope('<SaveCompraToBDValor1 xmlns="http://hm.comprafacil.pt/SIBSClick/webservice/"><origem>'.$origem.'</origem><IDCliente>'.$idcliente.'</IDCliente><password>'.$password.'</password><valor>'.$valor.'</valor><informacao>'.$informacao.'</informacao><IDUserBackoffice>'.$IDUserBackoffice.'</IDUserBackoffice></SaveCompraToBDValor1>','',array(),'document', 'literal');

// Send the SOAP message
$response = $client->send($msg,$action);

/* // Check for errors and output them
if ($client->fault) {
    echo '<p>Fault</p><pre>';
    print_r($response);
    echo '</pre>';
}

// Output the SOAP query and response
echo "<p>SOAP query</p>";
echo '<pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>';
echo "<p>SOAP response</p>";
echo '<pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>';

// Save the SOAP response result to a variable
$result=$response['SaveCompraToBDValor1Result'];*/

//Save the SOAP response result values to the corresponding variables

$referencia=$response['referencia'];
$entidade=$response['entidade'];
$valorOut=$response['valorOut'];
$error=$response['error'];

//Output the SOAP response result values
echo "<p>SOAP response values</p>";
echo 'username = '.$informacao.'<br>';
echo 'Referencia = '.$referencia.'<br>';
echo 'Entidade = '.$entidade.'<br>';
echo 'Valor = '.$valorOut;



Ajudem sff :'(
 
Back
Topo