Пример #1
0
  </head>
  <body>
    <div class="container">
     <div style="margin-top:70px;margin-bottom:50px" class="row">
     <div class="col-md-4">
     </div>
      <div style="border:1px solid;padding:40px" class="col-md-4 "> 
          <?php 
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $full_name = $_POST['full_name'];
    $user_name = $_POST['user_name'];
    $email = $_POST['email'];
    if (empty($full_name) or empty($user_name) or empty($email)) {
        echo "<h4>Every field should be filup </h4>";
    } else {
        $update = $user->userUpdate($uid, $full_name, $user_name, $email);
        //if($update){
        //header('Location:login.php');
        // }
        if ($update) {
            echo "success";
        } else {
            echo "error";
        }
    }
}
?>
        <form action="" method="post">
        <?php 
$getdata = $user->getuser($uid);
foreach ($getdata as $user) {