質問

if($_GET['tags'] == true){echo'
<select data-placeholder="'. $xml->tags .'" name="tags[]" class="chzn-select" multiple tabindex="4">';
$ergebnis = mysql_query("SELECT * FROM login");
while($row = mysql_fetch_object($ergebnis))
{echo'<option value="<a href=\''. $row->username .' ('. $row->fname .')\'>'. $row->username .'</a>">'. $row->username .' ('. $row->fname .')</option>';}
echo'
</select><br/><br/>';}

It always shows the link in the select area! What should I do??

役に立ちましたか?

解決

echo'<option value="<a href=\''. $row->username .' ('. $row->fname .')\'>'. $row->username .'</a>">'. $row->username .' ('. $row->fname .')</option>';

value="<a href="(...)

You opened value attribute and immediately closed it.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top