Read redirect GET or POST parameter from each branch of the if/else condition