A JavaScript/PHP solution that allows submitting HTML form as a single JSON variable.