<?php header('Location: '.($valid_login ? '/members/index.php' : 'login.php?errors=1')); exit(); ?>

Conditional PHP Redirect