title: Error in Jquery, Submit Button Not Displaying
body: <p>I can't find the error in my jquery append code. All is appending except for the last line, which is to put a form and submit button at the bottom of the comment/reply that is posted.</p>
  
  <p>The problem seem to be in the "profileformdiv".</p>
  
  <blockquote>
    <p>profile.php:1 Uncaught SyntaxError: Unexpected token &lt; in JSON at
    position 0
        at JSON.parse ()
        at Object.success (getprofilecomment.js:36)
        at fire (jquery.js:3291)
        at Object.fireWith [as resolveWith] (jquery.js:3421)
        at done (jquery.js:9533)
        at XMLHttpRequest. (jquery.js:9785)</p>
  </blockquote>
  
  <pre><code>$(function(){
  
  
  var userName = $("#username").val();
  
  $.ajax({
    method: "GET",
    url: "api/getprofilecomment.php",
    type: "json",
    cache: false,
    success: function(profileComment)
    {
      var profileComment = JSON.parse(profileComment);
      for(var i = 0; i &lt; profileComment.length; i++)
      {
        $("#usercommentdiv").append('&lt;div class=' + '"' + 'profilecommentheader' + '"' + 'id=' + '"' + 'profilecommentheader' + '"' + 'name=' + '"' + 'profilecommentheader' + '"' + '&gt;' + '&lt;/div&gt;');
        $("#usercommentdiv").append('&lt;div class=' + '"' + 'profilecommentdiv' + '"' + 'id=' + "'" + profileComment[i].profile_comment_id + "'" + 'name=' + '"' + 'profilecommentdiv' +  '"' + '&gt;' + userName + ':' + profileComment[i].profile_comment + '&lt;/br&gt;' + profileComment[i].time_added + '&lt;/div&gt;');
        $("#usercommentdiv").append('&lt;div class=' + '"' + 'profileuseriddiv' + '"' +  'id=' + '"' + profileComment[i].profile_user_id + '"' + 'name=' + '"' + 'profileuserid' + '"' + '&lt;/div&gt;');
        $("#usercommentdiv").append('&lt;div class=' + '"' + 'profileformdiv' + '"' + 'id=' + '"' + 'profileformdiv' + '"' + '&gt;' + '&lt;form type=' + "POST" + '&gt;' + '&lt;input type=' + "text" + 'id=' + "'" + "submit" + "'" + 'value=' + '"' + profileComment[i].profile_comment_id + '"' + '/&gt;' + '&lt;input type=' + "submit" + 'id=' + "submitreply" + 'onClick=' + "/api/postprofilereply.php" + 'value=' + "Reply" + "/&gt;" + "&lt;/form&gt;" + "&lt;/div&gt;");
      };
  }
  
  });
  });
  </code></pre>