PHP Code:
return (isset($_POST[$_index])) ? $_POST[$_index] : ''
I had missed a parenthese.

Your select box markup is a bit messed up. Do you want to let the user choose more then the current entry, which hasn't even got a name in your code?