jarv Posted March 29, 2011 Share Posted March 29, 2011 Hi, I am doing an EDIT user page and would like to check records with a dropdown and then set as selected, please help! <select name="BrokerID" class="small-input"> <option value="Please select an option">Please select a Broker</option> <?php while($row2 = mysql_fetch_array($broker)) { echo '<option name="BrokerID" value="'.$row2['BrokerID'].'">'.$row2['BrokerName'].'</option>'; } ?> </select> Quote Link to comment Share on other sites More sharing options...
jarv Posted March 29, 2011 Author Share Posted March 29, 2011 I just need to check if $row2['BrokerName'] = $row1['BrokerName'] then SELECTED Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.