菜鸟提问 :如何把书名$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;之前即可)
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn