Below is the code
I will try to ask this question again later on
Your text input fields all have the same ID, so when you're getting the value, it just grabs the value from the first element with that ID. IDs should only exist once per HTML document.