Advertisement
Guest User

form nya

a guest
Jul 3rd, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="description" content="Media Panel">
  8. <meta name="author" content="Media Panel">
  9. <title>Media Panel - Register</title>
  10. <link rel="shortcut icon" href="images/favicon.ico">
  11. <link rel="stylesheet" href="css/font-awesome.css" type="text/css">
  12. <link rel="stylesheet" href="css/bootstrap.css" type="text/css">
  13. <link rel="stylesheet" href="css/animate.css" type="text/css">
  14. <link rel="stylesheet" href="css/waves.css" type="text/css">
  15. <link rel="stylesheet" href="css/layout.css" type="text/css">
  16. <link rel="stylesheet" href="css/components.css" type="text/css">
  17. <link rel="stylesheet" href="css/plugins.css" type="text/css">
  18. <link rel="stylesheet" href="css/common-styles.css" type="text/css">
  19. <link rel="stylesheet" href="css/pages.css" type="text/css">
  20. <link rel="stylesheet" href="css/responsive.css" type="text/css">
  21. <link rel="stylesheet" href="css/matmix-iconfont.css" type="text/css">
  22. <link href="http://fonts.googleapis.com/css?family=Roboto:400,300,400italic,500,500italic" rel="stylesheet" type="text/css">
  23. <link href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,400,600" rel="stylesheet" type="text/css">
  24. </head>
  25. <body>
  26. <!--Topbar Start Here -->
  27. <header class="top-bar">
  28. <div class="container-fluid top-nav">
  29. <div class="row">
  30. <div class="col-md-2">
  31. <div class="clearfix top-bar-action">
  32. <div id="back-to-home">
  33. <a href="landing.php" class="btn btn-outline btn-default"><i class="fa fa-home "></i></a>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </header>
  39. <div class="col-md-12">
  40. <div class="box-widget widget-module">
  41. <div class="widget-head clearfix">
  42. <span class="h-icon"><i class="fa fa-user-plus"></i></span>
  43. <h4>Register</h4>
  44. </div>
  45. <div class="widget-container">
  46. <div class="widget-block">
  47. <div id="loading"></div>
  48. <div id="boxResult"></div>
  49. <div class="form-group">
  50. <label for="inputUsername">Username</label>
  51. <div class="input-group iconic-input">
  52. <span class="input-group-addon">
  53. <span class="input-icon"><i class="fa fa-user"></i></span>
  54. </span>
  55. <input type="text" class="form-control" name="username" id="username">
  56. </div>
  57. </div>
  58.  
  59. <div class="form-group">
  60. <label for="inputEmail">Email</label>
  61. <div class="input-group iconic-input">
  62. <span class="input-group-addon">
  63. <span class="input-icon"><i class="fa fa-envelope"></i></span>
  64. </span>
  65. <input type="text" class="form-control" name="email" id="email">
  66. </div>
  67. </div>
  68.  
  69. <div class="form-group">
  70. <label for="inputPhone">No. Telepon</label>
  71. <div class="input-group iconic-input">
  72. <span class="input-group-addon">
  73. <span class="input-icon"><i class="fa fa-mobile"></i></span>
  74. </span>
  75. <input type="text" class="form-control" name="noHP" id="noHP">
  76. </div>
  77. </div>
  78.  
  79. <div class="form-group">
  80. <label for="inputPassword">Password</label>
  81. <div class="input-group iconic-input">
  82. <span class="input-group-addon">
  83. <span class="input-icon"><i class="fa fa-unlock-alt"></i></span>
  84. </span>
  85. <input type="password" class="form-control" name="password" id="password">
  86. </div>
  87. </div>
  88.  
  89.  
  90. <label class="checkbox-inline">
  91. <input type="checkbox" id="checkbox">Saya setuju dengan <a href="#">Persyatan</a> dan <a href="#">Kebijakan</a><br><br>
  92. </label>
  93. <div class="form-actions">
  94. <button onclick="kirim();" class="btn btn-primary btn-md">Submit</button>
  95. </div>
  96. </div>
  97. <script>
  98. var loading = '<div class=\"progress\"><div class=\"progress-bar progress-bar-striped active\" role=\"progressbar\" aria-valuenow=\"100\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 100%\"></div></div>';
  99. function start(){
  100. $('#loading').html(loading);
  101. }
  102. function finish(){
  103. $('#loading').html("");
  104. }
  105. function kirim()
  106. {
  107. start();
  108. post();
  109. var username = $('#username').val();
  110. var password = $('#password').val();
  111. var email = $('#email').val();
  112. var noHP = $('#noHP').val();
  113. $.ajax({
  114. url : 'register().php',
  115. data : 'username='+username+'&password='+password+'&email='+email+'&noHP='+noHP,
  116. type : 'POST',
  117. dataType: 'html',
  118. success : function(result){
  119. hasil();
  120. finish();
  121. $("#boxResult").html(result);
  122. }
  123. });
  124. }
  125. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement