title: Trouble submitting many variables in jquery ajax to php
body: <p>This JS is giving me some problems. Specifically FF3.5 is saying there is <code>Error: missing ; before statement</code> and its pointing at the <code>'comsn=' + comsn</code> section. I know enough js to get myself into trouble, but specifics, im not there yet. Any ideas?</p>
  
  <pre><code>&lt;script type="text/javascript" &gt;
  $(function () {
      $(".submit").click(function () {
          var comsn = $("#comsn").val();
          var comrn = $("#comrn").val();
          var compic = $("#compic").val();
          var comment = $("#comment").val();
          var eventid = $("#eventid").val();
          var comuserid = $("#comuserid").val();
          var owner = $("#ownerid").val();
          var dataString = 'comsn=' + comsn '&amp;comrn=' + comrn '&amp;compic=' + compic '&amp;comment=' + comment '&amp;eventid=' + eventid '&amp;comuserid=' + comuserid '&amp;owner=' + owner;
              if (comment == '') {
                  alert('Must Type Comment to Post Comment');
              }else{
                  $("#flash").show();
                  $("#flash").fadeIn(400).html('&lt;img src="assets/uploading.gif" /&gt;Loading Comment...');
                  $.ajax({
                      type: "POST",
                      url: "comments_post.php",
                      data: dataString,
                      cache: false,
                      success: function (html) {
                          $("ol#update").prepend(html);
                          $("ol#update li:last").fadeIn("slow");
                          $("#flash").hide();
                      }
                  });
              }return false;
      });
  });
  &lt;/script&gt;
  </code></pre>