소스 검색

Envoi formulaire par méthode GET

Benoît Hubert 8 년 전
부모
커밋
0eb7622c3f
3개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 0
      exemples/ajax-envoi-formulaire-par-get/contenu.html
  2. 0 0
      exemples/ajax-envoi-formulaire-par-get/script.js
  3. 2 1
      exemples/liste.json

+ 6 - 0
exemples/ajax-envoi-formulaire-par-get/contenu.html

@@ -0,0 +1,6 @@
+<h1>AJAX - Envoi formulaire par GET</h1>
+
+<form id="ajax-form-get" method="GET" action="/ajax-form-get">
+    <input type="text" name="name" placeholder="Votre nom ?" />
+    <input type="submit" class="btn btn-primary" value="Envoyer" />
+</form>

+ 0 - 0
exemples/ajax-envoi-formulaire-par-get/script.js


+ 2 - 1
exemples/liste.json

@@ -18,5 +18,6 @@
     "slug": "validation-de-formulaires-bootstrap",
     "title": "Validation de formulaires Bootstrap"
   },
-  { "slug": "ajax-exemple-simple", "title": "AJAX - Exemple simple" }
+  { "slug": "ajax-exemple-simple", "title": "AJAX - Exemple simple" },
+  { "slug": "ajax-envoi-formulaire-par-get", "title": "AJAX - Envoi formulaire par GET" }
 ]