Frage

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

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top