Jump to content

check if dropdown option matches and select


jarv

Recommended Posts

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>

 

 

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.