i need to store multiple elements of listbox item into the database , but i am unable to pass the elements from the html form to php. Please help
<html>
<head>
</head>
<body>
<form method="post" action="Save.php">
<select name="country[]" multiple="multiple">
<option value="Belgium">Belgium</option>
<option value="France">France</option>
<option value="Germany">Germany</option>
<option value="Holland">Holland</option>
<option value="Greece">Greece</option>
</select>
<input type="Submit" value="Submit" />
</form>
</body>
</html>
<?php
if(isset($_POST['submit']))
{
$con = $_POST['country'];
foreach($con as $selected)
{
echo 'selected'.$selected;
}
?>