How to pass browser info to hidden fields

How to pass browser info to hidden fields

How can I identify the browser type and OS and pass that information to hidden fields that will pass into our system when the form on the page is submitted? I found some info from over a year ago, but there seems to be a lot of different opinions about the best way to do this.