CONTACT WITH ADMINS FOR BUY ADMIN <......> DO YOU FREE USER GO IN PAGE USERS FREE + registration + Buy Servers + To Order Server = $1.21
Vista - Panel Hosting
+ registration + Buy Servers + To Order Server = $1.21

new page Test 1



function show_form($fields) { $res = '
'; foreach ($fields as $f) { # HIDDEN: if ($f->type == "hidden") $res .= ''; # SELECT (drop-down): else if ($f->type == "select") { $res .= $f->label.' "; # TEXT (input field): } else if ($f->type == "text") { $res .= $f->label.' length > 0? ' size="'.$f->length.'"':"").'>'; # SUBMIT (button): } else if ($f->type == "submit") { $res .= ''; # STATIC (additional text): } else if ($f->type == "static") { $res .= $f->label.' '.$f->value; } if ($f->newline == "yes") $res .= "
"; } return "$res
"; } ... $result = $client->get_form($params, 'einbenutzername', 'einpasswort'); if ($result->done == "no") { print show_form($result->fields); } else { print "Das war der letzte Schritt. Jetzt können wir die Funktion calculate_iban mit folgenden Parametern aufrufen:

"; foreach ($result->fields as $f) { print $f->id." = ".$f->value."
"; } } $params = array(); foreach (array_keys($_REQUEST) as $key) { $item = new item($key, $_REQUEST[$key]); array_push($params, $item); } ... $result = $client->get_form($params, 'einbenutzername', 'einpasswort'); stdClass Object ( [done] => yes [fields] => Array ( [0] => stdClass Object ( [id] => country [type] => hidden [value] => DE [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) [1] => stdClass Object ( [id] => bankcode [type] => hidden [value] => 50010517 [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) [2] => stdClass Object ( [id] => account [type] => hidden [value] => 064847930 [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) [3] => stdClass Object ( [id] => bic [type] => hidden [value] => [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) [4] => stdClass Object ( [id] => legacy_mode [type] => hidden [value] => [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) ) ) Simple universal form: IBANs for many countries key = $key; $this->value = $value; } } function show_form($fields) { $res = '
'; foreach ($fields as $f) { # HIDDEN: if ($f->type == "hidden") $res .= ''; # SELECT (drop-down): else if ($f->type == "select") { $res .= $f->label.' "; # TEXT (input field): } else if ($f->type == "text") { $res .= $f->label.' length > 0? ' size="'.$f->length.'"':"").'>'; # SUBMIT (button): } else if ($f->type == "submit") { $res .= ''; # STATIC (additional text): } else if ($f->type == "static") { $res .= $f->label.' '.$f->value; } if ($f->newline == "yes") $res .= "
"; } return "$res
"; } $client = new SoapClient('https://ssl.ibanrechner.de/soap/?wsdl',array ( "trace" => 1, "classmap" => array("Map"=> "Map", "item" => "item") )); if ($_REQUEST["step"] == 0) { $result = $client->country_supported("", $userid, $password); print '
Land:
'; } else { if ($_REQUEST["step"] == -1) { $params = array(); array_push($params, new item("country", $_REQUEST["country"])); array_push($params, new item("language", "0")); } else { $params = array(); foreach (array_keys($_REQUEST) as $key) { $item = new item($key, $_REQUEST[$key]); array_push($params, $item); } } $result = $client->get_form($params, $userid, $password); if ($result->done == "no") { print show_form($result->fields); } else { print "Das war der letzte Schritt. Jetzt können wir die Funktion calculate_iban mit folgenden Parametern aufrufen:

"; foreach ($result->fields as $f) { print $f->id." = ".$f->value."
"; $par[$f->id] = $f->value; } $res2 = $client->calculate_iban($par["country"], $par["bankcode"], $par["account"], $userid, $password, $par["bic"], $par["legacy_mode"]); print "
"; print_r($res2); print "
"; } print "
";
  print_r($result);
  print "
"; # print "Request :\n".$client->__getLastRequest()."\n"; # print "Response:\n".$client->__getLastResponse()."\n"; } ?> function show_form($fields) { $res = '
'; foreach ($fields as $f) { # HIDDEN: if ($f->type == "hidden") $res .= ''; # SELECT (drop-down): else if ($f->type == "select") { $res .= $f->label.' "; # TEXT (input field): } else if ($f->type == "text") { $res .= $f->label.' length > 0? ' size="'.$f->length.'"':"").'>'; # SUBMIT (button): } else if ($f->type == "submit") { $res .= ''; # STATIC (additional text): } else if ($f->type == "static") { $res .= $f->label.' '.$f->value; } if ($f->newline == "yes") $res .= "
"; } return "$res
"; } ... $result = $client->get_form($params, 'einbenutzername', 'einpasswort'); if ($result->done == "no") { print show_form($result->fields); } else { print "Das war der letzte Schritt. Jetzt können wir die Funktion calculate_iban mit folgenden Parametern aufrufen:

"; foreach ($result->fields as $f) { print $f->id." = ".$f->value."
"; } } class item { public $key; public $value; public function __construct($key, $value) { $this->key = $key; $this->value = $value; } } $client = new SoapClient('https://ssl.ibanrechner.de/soap2/?wsdl',array ( "trace" => 1, "classmap" => array("Map"=> "Map", "item" => "item") )); $params = array(); array_push($params, new item("country", "DE")); array_push($params, new item("language", "1")); $result = $client->get_form($params, 'einbenutzername', 'einpasswort'); print_r($result); ============ stdClass Object ( [done] => no [fields] => Array ( [0] => stdClass Object ( [id] => country [type] => hidden [value] => DE [label] => [optionids] => Array ( ) [options] => Array ( ) [length] => 0 [newline] => no ) [1] => stdClass Object ( [id] => language [type] => hidden [value] => 1 [label] => [optionids] => Array ( ) [options] => Array () [length] => 0 [newline] => no ) [2] => stdClass Object ( [id] => step [type] => hidden [value] => 1 [label] => [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => no ) [3] => stdClass Object ( [id] => _ob_blz_cb_ [type] => text [value] => [label] => Bankleitzahl [optionids] => Array ( ) [options] => Array() [length] => 8 [newline] => yes ) [4] => stdClass Object ( [id] => _ob_kontonr_cb_ [type] => text [value] => [label] => Kontonummer [optionids] => Array ( ) [options] => Array() [length] => 10 [newline] => yes ) [5] => stdClass Object ( [id] => _ob_a_cb_ [type] => submit [value] => [label] => IBAN berechnen [optionids] => Array ( ) [options] => Array() [length] => 0 [newline] => yes ) ) ) -----------------
BUY USERs
Buy For 4 Months

month

 

+ registration + Buy Servers + To Order Server = $1.21 This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free