hi all,
I have a problem getting value from select option
my code is below
<form name="secmek" action="add.php" method="post">
<select name="list" id="list">
<?
@$db=mysql_connect('localhost','uname','pass');
mysql_select_db('dbname');
$sorgucat=mysql_query("select * from category");
while($satircat=mysql_fetch_row($sorgucat))
{
echo "<option value='$satircat[0]'>$satircat[1]</option>";
}
?>
</select>
<input type="submit" value="poz" name="del">
</form>
and this is my category table sql
CREATE TABLE `category` (
`id` int(11) NOT NULL auto_increment,
`cat` varchar(30) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
i need to receive content from drop down menu (in select options) and delete it.
but i cannot receive from select options
thanks beforehands