Dagon, many many thanks for your short but precious guideline that works perfectly to solve the problem.
For the convenience of the other viewers I'm presenting the whole solved scenario below:
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
//(',' Coma within the single quote shall be used as delimiter here)
$food=explode(',',$_POST['food']);
$insertSQL = sprintf("INSERT INTO menu (food, image_extension) VALUES (%s, %s)",
GetSQLValueString (trim($food[0]), "text"),
GetSQLValueString (trim($food[1]), "text");
mysql_select_db($database_menu, $menu);
$Result1 = mysql_query($insertSQL, $menu) or die(mysql_error());
$insertGoTo = "menu.php?status=choosen";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
The html part shall be changed to the following:
<select name="food" class="dropdownmenu" input id="food" value="<?php echo $_POST['food']; ?>">
<option value="selected="selected">Select Food</option>
<option value="Pizza, pizza.jpg">Pizza</option>
<option value="French Fry' frenchfry.jpg">French Fry</option>
</select>
Kind regards,