php redirect works but not on enter...