Hi I am after adding a NO THANKS option (that does nothing, just a default select) to the top of my variable option dropdown.
My code:
<?
$query= mysql_query("SE LECT DISTINCT username FROM admin_sessions" )or die(mysql_error ) ;
echo "<form action=removeby name.php method=POST><se lect name=users>";
while ($r = mysql_fetch_arr ay($query))
{
$user = $r["username"];
echo "<option value=$user>$us er</option>";
}
echo "</select>";
?>
<INPUT TYPE=submit NAME=users VALUE="Go!">
+ I cant get the option variable to pass to my removebyname.ph p file. I use $user in my SELECT and DELETE query for this file, is this correct, if not what should i be using.????
Any ideas,
Thanks
Jon
My code:
<?
$query= mysql_query("SE LECT DISTINCT username FROM admin_sessions" )or die(mysql_error ) ;
echo "<form action=removeby name.php method=POST><se lect name=users>";
while ($r = mysql_fetch_arr ay($query))
{
$user = $r["username"];
echo "<option value=$user>$us er</option>";
}
echo "</select>";
?>
<INPUT TYPE=submit NAME=users VALUE="Go!">
+ I cant get the option variable to pass to my removebyname.ph p file. I use $user in my SELECT and DELETE query for this file, is this correct, if not what should i be using.????
Any ideas,
Thanks
Jon