What potential issues can arise when using if-else statements in PHP forms?

One potential issue when using if-else statements in PHP forms is forgetting to properly handle all possible conditions, leading to unexpected behavior or errors. To avoid this, make sure to account for all possible scenarios and provide appropriate handling for each case.

// Example of properly handling if-else conditions in a PHP form
if(isset($_POST['submit'])){
    $username = $_POST['username'];
    
    if($username == 'admin'){
        echo 'Welcome admin!';
    } else {
        echo 'Welcome user!';
    }
}