Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php set selected option

//use this while you are looping throw the row.
<option value="myValue"<?=$row['value'] == 'myValue' ? ' selected="selected"' : ''?>>myValue</option>
 
PREVIOUS NEXT
Tagged: #php #set #selected #option
ADD COMMENT
Topic
Name
5+7 =