Added a s after http and changed a var name so the server can interpet it correctly

This commit is contained in:
Sam
2023-12-18 14:03:00 +01:00
parent 4b67ea9884
commit 76cf6eb069

View File

@@ -17,7 +17,7 @@ const get = ( url, params ) => request( url, params, 'GET' );
// SQL test
function sendata(naam, score) {
get( 'http://oege.ie.hva.nl/~hossan/GetData.php', { naam: naam, score: score } )
get('https://oege.ie.hva.nl/~hossan/GetData.php', { name: naam, score: score } )
.then( response => {
// Do something with response.
} );