I have a submit button at the end of the form.
I have added the following condition to the submit button:
onClick=\"this.disabled=true;
this.value=\'
Disabled HTML forms elements aren't sent along with the post/get values when you submit the form. So if you disable your submit button once clicked and that this submit button have the name
attribute set, It will not be sent in the post/get values since the element is now disabled. This is normal behavior.
One of the way to overcome this problem is using hidden form elements.