Пример #1
0
    $result2 = $business->update_student($id, $firstName, $lastName);
    $display = $result1 && $result2;
}
if (isset($_POST['update-student-password']) && isset($_GET['id'])) {
    $password = $_POST['password'];
    $confirmPassword = $_POST['confirmPassword'];
    $id = $_GET['id'];
    if ($password == $confirmPassword) {
        $result1 = $business->update_user_password($id, $password);
        $display2 = $result1;
    }
}
if (isset($_GET['id'])) {
    $id = $_GET['id'];
    $user = $business->view_user($id);
    $student = $business->view_student($id);
}
?>

<!doctype html>
<html>
  <head>
    <title>Geostage</title>
    <meta charset="utf-8">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>

    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
    
    <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.3/css/bootstrapValidator.min.css"/>
  <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.3/js/bootstrapValidator.min.js"> </script>