niche Posted May 30, 2009 Share Posted May 30, 2009 How do I turn this script into a drop down with links? <?php$sql = mysql_query("SELECT department_id, name FROM department");$options = '';echo '<select name="name"><option>CHOOSE ONE</option>';while($row = mysql_fetch_array($sql)) {$id = $row['department_id'];$thing = $row['name'];echo '<option value='.$id.'>'.$thing.'</option>';}echo '</select>';?> Link to comment Share on other sites More sharing options...
smerny Posted May 30, 2009 Share Posted May 30, 2009 you want a select menu that has links instead of things to select for a form? Link to comment Share on other sites More sharing options...
niche Posted May 30, 2009 Author Share Posted May 30, 2009 Yes. I'd like them to drop down, and pull out, I'd like to avoid Java. Link to comment Share on other sites More sharing options...
smerny Posted May 30, 2009 Share Posted May 30, 2009 how about CSS?something likehttp://www.cssplay.co.uk/menus/basic_dd.html Link to comment Share on other sites More sharing options...
niche Posted May 30, 2009 Author Share Posted May 30, 2009 CSS is fine.The site your referred me to looks pretty juicy. Thanks.I'll need at least a day to check it. It's 11:00 pm here and I have a very early morning tomorrow so I have to stop for the night.But, keep tabs on my progress please. I appreciate your help.By the way, will HTML and/or CSS let me do pull outs? Link to comment Share on other sites More sharing options...
smerny Posted May 30, 2009 Share Posted May 30, 2009 css/html for drop downs... if you wanna do a select menu that changes the page you'd have to do a javascript or a form button Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.