<select name="name"> <option value='petriukas.jpg'>Petriukas</option> </select>
$a = $_POST['name']; $b = str_replace('.jpg', '', $a); echo $a; //petriukas.jpg echo $b; //petriukas