how would i make a dropdown menu act as heaps of buttons the code for the buttons is below. Also my dropdown menu will not side next to the go button can someone help me with this too. Very much appreciated.
[code]
<?php
error_reporting(0);
$host=""; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
$db_name=""; // Changed database name
$tbl_name="users";
mysql_connect($host, $username, $password)or die("cannot connect");
mysql_select_db($db_name)or die("cannot select DB");
$sql="SELECT * FROM $tbl_name ORDER by user_id";
$result=mysql_query($sql);
$count=mysql_num_rows($result);
?>
<center><style type='text/css'>
table {
border-collapse: collapse;
border-spacing: 0;
border: 1px solid black;
-moz-border-radius-bottomleft:0px;
-webkit-border-bottom-left-radius:0px;
border-bottom-left-radius:0px;
-moz-border-radius-bottomright:0px;
-webkit-border-bottom-right-radius:0px;
border-bottom-right-radius:0px;
-moz-border-radius-topright:0px;
-webkit-border-top-right-radius:0px;
border-top-right-radius:0px;
-moz-border-radius-topleft:0px;
-webkit-border-top-left-radius:0px;
border-top-left-radius:0px;
height:100%;
margin:0px;padding:0px;
} tr:last-child td:last-child {
-moz-border-radius-bottomright:0px;
-webkit-border-bottom-right-radius:0px;
border-bottom-right-radius:0px;
}
table tr:first-child td:first-child {
-moz-border-radius-topleft:0px;
-webkit-border-top-left-radius:0px;
border-top-left-radius:0px;
}
table tr:first-child td:last-child {
-moz-border-radius-topright:0px;
-webkit-border-top-right-radius:0px;
border-top-right-radius:0px;
} tr:last-child td:first-child{
-moz-border-radius-bottomleft:0px;
-webkit-border-bottom-left-radius:0px;
border-bottom-left-radius:0px;
} tr:hover td{ background-color:#ffffff; }
td{
vertical-align:middle;
background-color:#ffffff;
border:1px solid #000000;
border-width:0px 1px 1px 0px;
text-align:left;
padding:7px;
font-size:10px;
font-family:Arial;
font-weight:normal;
color:#000000;
}
tr:last-child td{ border-width:0px 1px 0px 0px;}
tr td:last-child{ border-width:0px 0px 1px 0px; }
tr:last-child td:last-child{ border-width:0px 0px 0px 0px; }
tr:first-child td{
background:-o-linear-gradient(bottom, #ff7f00 5%, #ff0000 100%);
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ff7f00), color-stop(1, #ff0000) );
background:-moz-linear-gradient( center top, #ff7f00 5%, #ff0000 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff7f00', endColorstr='#ff0000'); background: -o-linear-gradient(top,#ff7f00,ff0000);
background-color:#ff7f00;
border:0px solid #000000;
text-align:center;
border-width:0px 0px 1px 1px;
font-size:14px;
font-family:Arial;
font-weight:bold;
color:#ffffff;
}
tr:first-child:hover td{
background:-o-linear-gradient(bottom, #ff7f00 5%, #ff0000 100%);
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ff7f00), color-stop(1, #ff0000) );
background:-moz-linear-gradient( center top, #ff7f00 5%, #ff0000 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff7f00', endColorstr='#ff0000'); background: -o-linear-gradient(top,#ff7f00,ff0000);
background-color:#ff7f00;
}
tr:first-child td:first-child{
border-width:0px 0px 1px 0px;
}
tr:first-child td:last-child{
border-width:0px 0px 1px 1px;
}
</style>
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){
$("#select-all").on("click", function() {
var all = $(this);
$('input:checkbox').each(function() {
$(this).prop("checked", all.prop("checked"));
});
});
});>
function jumpTo() {
var list = document.navList.subMenu
if (list.options[list.selectedIndex].value != "Choose One") {
location = list.options[list.selectedIndex].value
</script>
<form name="form1" method="post" action="">
<table align='center'>
<tr>
<td>
<input type="checkbox" id="select-all" name="selectAll" value=""/>
</td>
<td>
ID
</td>
<td >
Username
</td>
<td>
Email
</td>
<td>
Admin
</td>
<td>
User Active
</td>
</tr></center>
<?php while($rows=mysql_fetch_array($result, MYSQL_ASSOC))
{
if ($rows['user_perm_level'] == "2")
{
$admin = 'Yes';
}
else {
$admin = 'No';
}
if ($rows['user_active'] == "1")
{
$active = 'Yes';
}
else {
$active = 'No';
} ?>
<tr>
<td><input name="checkbox[]" type="checkbox" id="checkbox[]" value="<? echo $rows['user_id']; ?>"></td>
<td><?php echo $rows['user_id']; ?></td>
<td><?php echo $rows['user_name']; ?></td>
<td><?php echo $rows['user_email']; ?></td>
<td><?php echo $admin ?></td>
<td><?php echo $active ?></td>
</tr>
<?php } ?>
</table>