This example shows how 2 calls can be combined, in this case a search for species names and keys then links directly to the Site Data service and displays a map for that species.
Species Name:
timeout = 500; $client->response_timeout = 500; $query1 = ' '.$_POST["spp"].' '; $result = $client->call("GetTaxonomySearch", $query1); $obj = simplexml_load_string(fixupxml($client->response)); echo $client->getError(); echo "$client->response"; echo "
"; echo ""; echo ""; foreach ($obj->Taxon as $Taxon) { echo ""; } echo "
CategoryScientific nameTaxon Version KeyAuthority
". ucfirst($Taxon->TaxonReportingCategory) ."". $Taxon->TaxonName. "". $Taxon['taxonVersionKey'] ."". $Taxon->Authority. "
"; } ?>
Back