I have a simple HTML form trying to capture 5 fields. I need to create a string with these 5 fields separated by pipe(|) and enclosed in double quotes("") before the form is posted to a URL.

What is the best possible way i can achieve this requirement? I am complete rookie with Javascript, but my research so far suggests, i will need to use Javascript in this scenario, hence posting in this forum