Skip to content

Commit

Permalink
uploads the file
Browse files Browse the repository at this point in the history
  • Loading branch information
Salome28 authored Jul 10, 2024
1 parent 427dcac commit 26b1916
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions pageAuthenfication.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ <h1> Mot de Passe </h1>
</div>

<script>
$(document).ready(function() {
$("#submitBtn").on("click", function() {
$.ajax({
url: "login.php",
method: "POST",
data: $("#loginForm").serialize(),
success: function(response) {
if(response === "success") {
alert('identifiant et mot de passe sont corrects !');
window.location.href = "EspacePerso.html";
} else {
alert('identifiant et mot de passe sont incorrects !');
}
}
});
});
});
//$(document).ready(function() {
//$("#submitBtn").on("click", function() {
//$.ajax({
//url: "login.php",
//method: "POST",
//data: $("#loginForm").serialize(),
//success: function(response) {
//if(response === "success") {
//alert('identifiant et mot de passe sont corrects !');
// window.location.href = "EspacePerso.html";
//} else {
//alert('identifiant et mot de passe sont incorrects !');
//}
//}
//});
//});
//});
</script>
</body>
</html>

0 comments on commit 26b1916

Please sign in to comment.