Assuming there are 5 inputs in web form
Well, the W3C recommendation on HTML forms does say:
The control names/values are listed in the order they appear in the document.
Still, I'd consider it a bit risky to have your app depend critically on that detail.