diff --git a/js/registerform.js b/js/registerform.js index 4f977fe..59ba031 100644 --- a/js/registerform.js +++ b/js/registerform.js @@ -72,7 +72,7 @@ $().ready(function(){ formdata.find(item => item.name === "roomtype").value = $("#roomtype").select2("data")[0].text; var parameters = $.param(formdata); console.log(parameters); - var post = $.post('api/register.php', parameters); + var post = $.post('api/register', parameters); post.done(function(data){ console.log(data); });