// if ($_REQUEST['do'] == 'signup') if ($_REQUEST['do'] == 'checkdate') { $_REQUEST['do'] = 'register'; $_POST['agree'] = '1'; }