Hi all,

I am trying to pass the fields from the form page to the action page how do I do I reference them please? (I am going to use them in the action page code where it says ***USD*** and ***CAD***)

Thank-you





Form page:
PHP Code:
<form action="ws.php" method="get">

<
select name="FromCurrency">
<
option value=""></option>
</
select>
</
p>

 

<
p>
<
select name="ToCurrency">
<
option value=""></option>
</
select>
</
p>


<
input type="submit" />
</
form






Action page:


PHP Code:
<?php
require_once 'lib/nusoap.php';

$oClient   = new nusoap_client(
    
'http://www.webservicex.net/CurrencyConvertor.asmx?WSDL',
    
TRUE // Needs to be TRUE because we are using WSDL
);
$oResponse $oClient->call(
    
'ConversionRate',
    array(
        
'FromCurrency' => '***USD***',
        
'ToCurrency'   => '***CAD***'
    
)
);

 

$fConversionRate = (float) $oResponse['ConversionRateResult'];
echo 
$fConversionRate;
?>