title: What are the downsides of using hidden form fields to store values?
body: <p>What are the downsides of using hidden form fields to store values that would otherwise have to either be a global variable or be passed around from function to function.  For instance...  A variable like currentIndex that changes from song to song in a music player is hard to control with anything other than a global variable .  Well at least it is in my hacked up code.  My question is... Will storing this value in a hidden form field make my script run a lot slower, and or will doing this be introducing security issues?  Thanks for any help and my apologies if this is a duplicate.</p>