when user click add button twice, from get submitted twice with same dat
You can disable the button after clicking or hide it.
js :
function disableButton(button) { button.disabled = true; button.value = "submitting...." button.form.submit(); }