title: My ajax data submit function throws an error
body: <p>here is my form:</p>
  <pre><code>&lt;form id=&quot;finnform&quot; autocomplete=&quot;off&quot;&gt;
      &lt;div class=&quot;textbaby&quot;&gt;
          &lt;label for=&quot;name&quot;&gt;Dein Name&lt;/label&gt;&lt;br&gt;
          &lt;input type=&quot;text&quot; name=&quot;name&quot;  placeholder=&quot;Hier eintragen...&quot; class=&quot;name-text&quot;&gt;&lt;br&gt;&lt;br&gt;
          &lt;label for=&quot;fname&quot;&gt;Text an Finn&lt;/label&gt;&lt;br&gt;
          &lt;textarea cols=&quot;50&quot; rows=&quot;10&quot;  placeholder=&quot;Schreib hier...&quot; autocomplete=&quot;off&quot; name=&quot;text&quot;&gt;&lt;/textarea&gt;&lt;br&gt;&lt;br&gt;
          &lt;input type=&quot;submit&quot; name=&quot;submit&quot; class=&quot;submit-knopf&quot;&gt;&lt;br&gt;&lt;br&gt;
      &lt;/div&gt;
  &lt;/form&gt; 
  </code></pre>
  <p>And here my Javascript to send the data to the &quot;data-receive&quot; file:</p>
  <pre><code>&lt;script&gt;    
      $(&quot;#finnform&quot;).submit($.ajax({url: 'textannahme.php', type: 'post', data: {name: name, text: text}, success: function(response){
      console.log(response);
      alert(&quot;Das Büro von Finn wird sich umgehend um Ihren Text kümmern!&quot;)}}));
  &lt;/script&gt;
  </code></pre>
  <p>And the error is: Uncaught ReferenceError: text is not defined.
  I dont really know how to fix this. Maybe somebody has an idea?</p>
  <p>Thanks</p>