title: Use function in HTML form to specifc camps
body: <p>I want to when I click the button it will add what I wrote in the field with the prefix say and send it through POST, the POST is working fine because if I don't use the script it will send it but without the "prefix"   </p>
  
  <pre><code>    &lt;script&gt;
          function say() {
            document.actionsv.command.value = ("say " + "\"" + document.COMMOM.SAY.value + "\"");
            document.actionsv.submit();
          }
      &lt;/script&gt;
  
      &lt;form action='' method='post' name="actionsv"&gt;
         &lt;div class="row"&gt;
            &lt;div class="col-8"&gt;
               &lt;div class="card"&gt;
                  &lt;div class="card-content"&gt;
                     &lt;div class=""&gt;
                      &lt;form name='COMMOM'&gt;
                        &lt;table class="table table-hover-animation mb-0 table-striped"&gt;
                           &lt;thead&gt;
                              &lt;tr&gt;
                                 &lt;th&gt;&lt;/th&gt;
                                 &lt;th class="o"&gt;&lt;/th&gt;
                              &lt;/tr&gt;
                           &lt;/thead&gt;
                           &lt;tbody&gt;
                              &lt;tr&gt;
                                 &lt;td&gt;   
                                    &lt;input type="text" name="SAY" autocomplete="off" value="" class="form-control"&gt;
                                 &lt;/td&gt;
                                 &lt;td align="center"&gt;&lt;button type="submit" value="Say" onclick="say()" class="btn btn-success waves-effect waves-light"&gt;MSAY&lt;/button&gt;&lt;/td&gt;
                              &lt;/tr&gt;
                           &lt;/tbody&gt;
                        &lt;/table&gt;
                      &lt;/form&gt;
                     &lt;/div&gt;
                  &lt;/div&gt;
               &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt; 
      &lt;/form&gt;
  </code></pre>
  
  <p>I've tried everything but can't get it to work.. 
  This is the error in console: <a href="http://prntscr.com/oq4084" rel="nofollow noreferrer">http://prntscr.com/oq4084</a></p>