For one, after viewing your code it seems that you would do best to combine the two if's, as below:
if ((isset($_POST['test']) && isset( $_POST['odp']))
{
code to execute;
}
What are the values you are getting for isset( $_POST['test']) and isset( $_POST['odp'])? You may want to try echoing them out to see if they are the actual values you are expecting. You also can try echoing something right after the two if(isset's, as it may be part of the executed code that is not working, and not the actual if statements.
empty($_POST['test']) may work better as well, same as poster above stated.