title: Store several form values in one cookie
body: <p>I'm a JavaScript novice and would appreciate a little advice.  </p>
  
  <p>I found online a snippet that allows to save form input values in separate cookies:</p>
  
  <pre><code>function storeValues(form)  
    {
      setCookie("field1", form.field1.value);
      setCookie("field2", form.field2.value);
      setCookie("field3", form.field3.value);
      setCookie("field4", form.field4.value);
      return true;
    }
  </code></pre>
  
  <p>How should this be modified to store values from several inputs in a single cookie?</p>