Variable testing

Added isset() testing to $_POST variables before using them.