Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Select 如何用WSDL数据(部分)的所有元素填充PHP下拉框?_Select_Soapui_Currency_Demo - Fatal编程技术网

Select 如何用WSDL数据(部分)的所有元素填充PHP下拉框?

Select 如何用WSDL数据(部分)的所有元素填充PHP下拉框?,select,soapui,currency,demo,Select,Soapui,Currency,Demo,当您下载SoapUI时,有一个关于货币的WSDL的好例子 这个: 在我的PHP页面上,我想要所有 在下拉框中 像这样: <select name="eneagram" > <option value="USD">USD</option> <option value="JPY">JPY</option> 美元 日元 我所做的是: <?php if(isset($_POST['getdata'])){

当您下载SoapUI时,有一个关于货币的WSDL的好例子

这个:


在我的PHP页面上,我想要所有 在下拉框中

像这样:

<select name="eneagram" >
   <option value="USD">USD</option>
   <option value="JPY">JPY</option>

美元
日元
我所做的是:

    <?php
if(isset($_POST['getdata'])){


//$naam=$_POST['naam'];
//$date=$_POST['date'];
$type=$_POST['type'];
//$core=$_POST['core'];
//$management=$_POST['management'];
//$tools = json_encode($_POST['tools']);
//$tools=$_POST['tools'];
//$analytisch=$_POST['analytisch'];
$eneagram=$_POST['eneagram'];

try{
    $soap_client = new
    //SoapClient("http://www.webservicex.net/stockquote.asmx?WSDL");
    SoapClient("http://www.webservicex.com/currencyconvertor.asmx?WSDL");
   // $vec = array("symbol"=>"DOX");

   $vec = array("FromCurrency"=>"$type", "ToCurrency"=>"$eneagram");
    $quote = $soap_client->ConversionRate($vec);
    echo $quote->ConversionRateResult;
    }
    catch(SoapFault $exception)
    {
        echo $exception->getMessage();
    }



if(true == false ){
    echo "<label class='err'>All fields are required</label>";
    }

        else{

    }


?>
<script>alert('Calculated the conversion rate!');</script>
<?php }
}
 ?>

    <?php
if(isset($_POST['getdata'])){


//$naam=$_POST['naam'];
//$date=$_POST['date'];
$type=$_POST['type'];
//$core=$_POST['core'];
//$management=$_POST['management'];
//$tools = json_encode($_POST['tools']);
//$tools=$_POST['tools'];
//$analytisch=$_POST['analytisch'];
$eneagram=$_POST['eneagram'];

try{
    $soap_client = new
    //SoapClient("http://www.webservicex.net/stockquote.asmx?WSDL");
    SoapClient("http://www.webservicex.com/currencyconvertor.asmx?WSDL");
   // $vec = array("symbol"=>"DOX");

   $vec = array("FromCurrency"=>"$type", "ToCurrency"=>"$eneagram");
    $quote = $soap_client->ConversionRate($vec);
    echo $quote->ConversionRateResult;
    }
    catch(SoapFault $exception)
    {
        echo $exception->getMessage();
    }



if(true == false ){
    echo "<label class='err'>All fields are required</label>";
    }

        else{

    }


?>
<script>alert('Calculated the conversion rate!');</script>
<?php }
}
 ?>