How to add css styles to the drop down list on this form? I searched a lot over the internet but no useful results found. Thanks
echo "<form method='post' action='advisor.php?view=$view'>
Select Student: <select name='data'>";
while($row = mysqli_fetch_array($query))
{
echo "<option value=\"".$row[3] . "\">".$row[0] ." " . $row[1] . " (".$row[3].")".
"</option>";
}
echo " </select>
<input type='submit' name='submit' class='buttonM' value='Show Questions' />
</form>";
}
<option>is always a child of<select>and you also open a<select>-tag in the second line - which is never closed. What exactly are you trying to achieve?