Home  >  Article  >  Backend Development  >  初学者提问 :怎么把书名$bookname;填进去text 框中去

初学者提问 :怎么把书名$bookname;填进去text 框中去

WBOY
WBOYOriginal
2016-06-13 12:10:531041browse

菜鸟提问 :如何把书名$bookname;填进去text 框中去



           

Tour Information
            
            

Mission Information


            

            
            
            
            
            
            
            
            
            
            
            
            
            
            
书名: ' />
Trip Date:
Mission Goals:

            Exploration

            Contact
Crew species:  
            
            

            

            
 
//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