In the above code I am trying to capture the value of idnum in the variable $image_result to no avail. Any help would be greatly appreciated
echo "<select name='myitem' id='myitem' action='post>";
while($row = mysql_fetch_array($result1)){
echo "<option value='".$row["idnum"]."' data-image='/components/com_aclsfgpl/photos/p".$row["idnum"]."n1.jpg'>".$row["title"]."</option>";
}
echo "<option value='". $row['idnum']."'>".$row['title']. '</option>';
echo "</select>";
$image_result=$_POST['myitem'];