Advertisement
nicolas-chuet

formulaire

Apr 7th, 2020
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  7.  
  8. <title>testphp</title>
  9. <script>
  10.  
  11. $( document ).ready(function() {
  12. $( "#addUrl" ).bind( "click", function( event ) {
  13. $("#divUrl").append('<input type="text" name="url[]" /><br/>');
  14. });
  15. })
  16. </script>
  17. </head>
  18. <body>
  19. <p> page test 4</p></br>
  20. <p> il s agit d'avoir une page pour faire un affichage test! 1 toto</p></br>
  21. <form action="http://modal.local/index.php" method="POST">
  22. TITLE MODAL: <input type="text" name="title" /><br/>
  23. <label>TEXT MODAL:
  24. <textarea name="text" placeholder="Saisissez votre texte"></textarea>
  25. </label><br/>
  26. URL MODAL: <input type="text" name="url[]" /><br/><br/>
  27. <input type="button" value="Ajouter une url" id="addUrl" >
  28. <div id="divUrl"></div>
  29. <input type="submit" value="soumettre"><br/>
  30. </form>
  31.  
  32.  
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement