Auto commit: 2025-12-11T19:33:33.198Z
This commit is contained in:
parent
b8314b8ed6
commit
5cf23db15a
@ -87,11 +87,9 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
const formData = new FormData(addMemberForm);
|
const formData = new FormData(addMemberForm);
|
||||||
formData.append('action', 'add');
|
|
||||||
|
|
||||||
fetch('api_members.php', {
|
fetch('api_members.php', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: formData
|
body: new URLSearchParams(formData)
|
||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user