菜鸟提问 :如何把书名$bookname;填进去text 框中去
Tour Information
Mission Information
//header('Content-Type:text/html; charset=utf-8');
$isbn = '9787308083256';
$result = PIPHP_GetBookFromISBN($isbn);
function PIPHP_GetBookFromISBN($isbn)
{
//echo header("Content-Type:text/html;charset=utf-8");
$page2xml = @simplexml_load_string($page);
$booksummary=$page2xml->summary;
//echo $booksummary;
$bookname=$page2xml->title;
return $bookname;
}
?>
如何把书名$bookname;填进去text 框中去
------解决思路----------------------把php放在最上面(在echo $result;之前即可)