Remove id

This commit is contained in:
Bruno Rybársky 2024-02-03 18:14:07 +01:00
parent 69250ff804
commit b8323683f8

@ -16,7 +16,6 @@
} }
function updateUserProfile() { function updateUserProfile() {
const userId = document.getElementById("updateUserIdProfile").value;
const firstName = document.getElementById("updateFirstName").value; const firstName = document.getElementById("updateFirstName").value;
const lastName = document.getElementById("updateLastName").value; const lastName = document.getElementById("updateLastName").value;
const nickname = document.getElementById("updateNickname").value; const nickname = document.getElementById("updateNickname").value;
@ -24,7 +23,6 @@
const data = new URLSearchParams(); const data = new URLSearchParams();
data.append("action", "update_user_profile"); data.append("action", "update_user_profile");
data.append("user_id", userId);
data.append("first_name", firstName); data.append("first_name", firstName);
data.append("last_name", lastName); data.append("last_name", lastName);
data.append("nickname", nickname); data.append("nickname", nickname);
@ -100,9 +98,6 @@
<div class="form-container" id="updateUserProfileForm"> <div class="form-container" id="updateUserProfileForm">
<h1>Update User Profile</h1> <h1>Update User Profile</h1>
<form> <form>
<label for="updateUserIdProfile">User ID:</label>
<input type="text" id="updateUserIdProfile" name="updateUserIdProfile" required><br>
<label for="updateFirstName">First Name:</label> <label for="updateFirstName">First Name:</label>
<input type="text" id="updateFirstName" name="updateFirstName" required><br> <input type="text" id="updateFirstName" name="updateFirstName" required><br>