Advertisement
taktikhek

Untitled

May 30th, 2019
822
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <?php
  2. if(validation_errors() != null){
  3. echo '<div class="alert alert-danger">';
  4. echo validation_errors();
  5. echo '</div>';
  6. unset($errorMsg);
  7. }
  8.  
  9. if(isset($errorMsg)){
  10. echo '<div class="alert alert-danger">';
  11. echo $errorMsg;
  12. echo '</div>';
  13. unset($errorMsg);
  14. }
  15. if(isset($successMsg)){
  16. echo '<div class="alert alert-success">';
  17. echo $successMsg;
  18. echo '</div>';
  19. unset($successMsg);
  20. }
  21. ?>
  22. <form method="POST">
  23. <input type="text" name="nama" value="<?php echo $old_value['nama'];?>"></br>
  24. <input type="text" name="username" value="<?php echo $old_value['username'];?>"></br>
  25. <input type="password" name="password" value="<?php echo $old_value['password'];?>"></br>
  26. <input type="submit">
  27. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement