> Use HTML attribute "selected" in the option field you want to > set as default...
Yes.., thank you.., however I am more interested in how to force that selection to a specific option tag in the dropdown from a search. If I'm missing your point please excuse me. I'm a little brain dead this morning. If I have something like this what I'll want to do is to identify the point in the array where I can force the selected to be the default based on the previous search. <select name="sellocation" class="body_text" id="sellocation"> <option value="0" <?=$option[0]?>>Make Selection</option> <? $i = 1; while($row = mssql_fetch_array($result)) { $v = $row['loc_id']; $n = $row['loc_city']; echo "<option value=\"$v\" $option[$i]>$n</option>"; } ?> Is there a better way of doing this? alex hogan ************************************************************************************* The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. ************************************************************************************* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php