Jump to content

drop down list issue


chelnov63

Recommended Posts

Hi the following always seem to have NO selected even when the value $row_rsMusic['live'] is equivalent to Y ..is my syntax wrong? thanks in advance:

 

 

<select name="select" id="select">
                <option value="choose">Please choose</option>
                <option value="Y" selected='<?php if ($row_rsMusic['live'] == "Y") echo "selected"; ?>'>Yes</option>
                <option value="N" selected='<?php if ($row_rsMusic['live'] == "N") echo "selected"; ?>'>No</option>
              </select>

Link to comment
https://forums.phpfreaks.com/topic/117182-drop-down-list-issue/
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.