gundambison

form dinamis

Dec 26th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['id'])){
  3.     print_r($_POST);
  4. }
  5. /*
  6. sya udah nyoba.. berhasil masuk kok!!
  7. kecuali kalau kamu memakai ajax.. nah itu ngak masuk..
  8. krn saya belum nyoba kl pake ajax
  9. */
  10. ?>
  11. <script src='../asset/js/jquery.1.7.1.min.js'></script>
  12. <form method="post" id="test">
  13.     <div id="form_tes">
  14.         <input type="text" name="id" />
  15.     </div>
  16. <input type=submit />
  17. </form>
  18. <script>
  19.     $("#form_tes").append('<br/><input type="text" name="name" />');
  20. </script>
Advertisement
Add Comment
Please, Sign In to add comment