Jump to content

php mysql edit help for dropdown select.


jaylearning

Recommended Posts

Hi! thanks for looking.

 

i cant seem to work out  how to get my drop down menu to select the value that has been selected when submiting.

please help me im so new to this i cant work it out i looked at so many tutorials.

 

<select name="autoplay"><?

if ($myrow["autoplay"] == "1") {

echo '<option value="0">No</option>

            <option value="1" selected="selected">Yes</option>';

} else {

echo '<option value="0" selected="selected">No</option>

            <option value="1">Yes</option>';

}

      ?> </select>

Link to comment
https://forums.phpfreaks.com/topic/81497-php-mysql-edit-help-for-dropdown-select/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.