Esempio n. 1
0
<!DOCTYPE html>  
 <html>  
    <head>  
        <meta charset = "UTF-8" />  
        <title>Профил</title>   
        <link rel="stylesheet" type="text/css" href="css/forms.css">   
    </head>  
    <body background="images/background/back_update.jpg">  
        <?php 
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    ?>

            <?php 
    $user = new UserDB();
    $errors = $user->isValidUpdateUser($_POST);
    $userInfo = (new UserDB())->selectUserData((int) $_SESSION['id']);
    ?>

                <?php 
    if (count($errors) == 0) {
        ?>

                    <?php 
        echo "<strong>Успешно променихте профила си!</strong>";
        ?>
                    
                <?php 
    } else {
        ?>
                    <?php