Need help could anyone know how to make an image in a form act as a submit button? Would anyone know where I can get information on how to fill a drop down box with data in a mysql database? Please help please please :-/

<select name="studid" id="jumpMenu" >
        <option value="Select">Select</option>
<?php
while($rows = mysql_fetch_array($result))
{

?>
          <option value="<?php echo $rows['userid']; ?>"><?php echo $rows['userid']; ?></option> 
 <?php
}
?>         
        </select>

i hope this cud help in filling mysql data in the drop down box..

it works for me.. try it out..

Thanks i will give it a try will this code be able to show the value if selected

ya it did show for me...

i used this for querying the database..

Thanks will give it a shot

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.