if(isset($_GET['search'])){
$search = urlencode($_GET['search']);
$xml = simplexml_load_string(file_get_contents("http://ohioweblibrary.org/export?q=$search"));
if($xml->hits > 0){
foreach ($xml->results->result as $result) {
$author = $result->author!=""?$result->{'author'}:"n/a";
$description = $result->description!=""?$result->{'description'}:"none";
$output .= "
"; } $output .= "
See the full list of results at the Ohio Web Library"; }else{ $output = "No results found"; } } ?> =$output?>
"; } $output .= "
See the full list of results at the Ohio Web Library"; }else{ $output = "No results found"; } } ?> =$output?>