[php] 2

Viewer

  1. <?php
  2.  
  3. include "config.php";
  4.  
  5. if (isset($_POST["ubahPasien"])) {
  6.  
  7.     if (ubahPasien($_POST) > 0) {
  8.         echo "
  9.             <script>
  10.                 alert('data berhasil diubah!');
  11.                 document.location.href = 'index.php';
  12.             </script>
  13.         ";
  14.     } else {
  15.         echo "
  16.             <script>
  17.                 alert('data gagal diubah!');
  18.                 document.location.href = 'index.php';
  19.             </script>
  20.         ";
  21.     }
  22. }

Editor

You can edit this paste and save as new:


File Description
  • 2
  • Paste Code
  • 30 Apr-2024
  • 480 Bytes
You can Share it: