1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| 'use strict';
myApp.service("ServiceRecordMembres", function($scope) {
this.MyRecordNewUser = function() {
$http.post("http://127.0.0.1/site1-projet-en-commun/server/mysql/SQLRecordMembres.php", {
DbNom: "$scope.inputNom",
DbPrenom: "$scope.inputPrenom",
DbDateDeNaissance: "$scope.inputDateDeNaissance",
DbCodePostale: "$scope.inputCodePostale",
DbVille: "$scope.inputVille",
DbPays: "$scope.inputPays",
DbAdressePostale: "$scope.inputAdressePostale",
DbEmail: "$scope.inputEmail",
DbTelephone: "$scope.inputTelephone",
DbIdentifiant: "$scope.inputIdentifiant",
DbPasse: "$scope.inputMotDePasse"
}).
success(function(data, status) {
document.getElementById("info").innerHTML = "Ca marche !"
}).
error(function(data, status) {
document.getElementById("erreur").innerHTML = "Erreur lors de l'envoi"
});
}
}); |
Partager