初学者提问 :怎么把书名$bookname;填进去text 框中去
程序员文章站
2022-06-16 09:57:51
...
菜鸟提问 :如何把书名$bookname;填进去text 框中去
Tour 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;之前即可)
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;之前即可)
相关文章
相关视频