The PastaList.php is expecting a
$_POST['submit']
but it is not available!
Ask yourself what is this 'submit' thing? You are missing something in the html form. You have done it right for the select elements, take reference from them.
Check this out
Form Handling with PHP[
^]
If you have time, you should google for SQL injection and learn how to construct SQL statement safely.