0
for 루프가 last.fm API의 XML 데이터를 표시합니다. 그러나 각각의 결과에 버튼을 추가하고 싶지만, 단순히 텍스트로 나타나고 버튼으로 인식되지 않습니다.PHP 버튼이 제대로 표시되지 않습니다.
$xmlmusic = new SimpleXMLElement($result);
$releases = $xmlmusic->xpath('artist/similar/artist');
foreach ($releases as $artist) {
$artistResult .= '<div class="searchitem">';
$artistName = $artist->name . PHP_EOL;
$artistResult .= $artist->name . PHP_EOL;
$artistResult .= '<form name="favourite" action="'.$_SERVER['PHP_SELF'];'" ." method="POST">';
$artistResult .= '<input type="submit" id="graphic" value="favourite">add</form>';
$artistResult .= '</div>';
<?php echo $artistResult ?>
"추가"기능이있는 작은 상자로 표시되지만 버튼으로 보이지는 않습니다. 페이지
링크 : Artist Search
이 어떤 도움에 감사드립니다,
JB